From: Robert Klemme Date: 2012-03-27T18:21:23+09:00 Subject: Re: sort array of strings with integers Jan E. wrote in post #1053502: > I assume you mean > > b = %w[a1 a3 a2 a4 a7 a6 a5 a8 a9 a10] > > Because what you wrote down isn't valid Ruby code. The code is syntactically valid. And if all a1, a2 etc. are local variables or methods then this code will even execute properly. Kind regards robert -- Posted via http://www.ruby-forum.com/.