Phillip Gawlowski wrote in post #959912:
> However, QSort is (again, so says Wikipedia), only maintains the
> relative order of records, if those are equal.
> ["a",3] and ["b",3] aren't equal as far as a computer is concerned,
> resulting in the OP's problem.

@Phillip : I am not sure I agree. When sorting on the second half, the
couple (["a", 3], ["b", 3]) falls under the "equal" case of the choice.

Robert Klemme wrote :
> In this case it's not really needed IMHO

@Robert : yes in this precise case with two fields, you can go around.
But in general, if you work with many fields and have to sort by one of
them, you should not have to remember the previous sorts and specify all
the unconcerned fields.
_md

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