Artem B. wrote in post #1086501:
> haha - my mind like Gnome:) Is it bad/slow method?

Yes -- compared to "serious" algorithms like quick sort.

I hope you didn't actually write that code for performance? Because a
"home made" implementation written in a slow language doesn't stand a
chance against an optimized algorithm written in C (like Ruby's sort()
method).

-- 
Posted via http://www.ruby-forum.com/.