From: "Iñaki Baz Castillo" Date: 2011-07-01T20:22:45+09:00 Subject: Re: How to order Structs based on two fields 2011/7/1 Robert Klemme : > array.sort_by {|e| [e.a, e.b]} Note that entries must be ordered by smaller :a and, in case of same :a, by higher :b. So the last "e.b" should be changed to something else. Trying it right now. Thanks a lot. -- Iñaki Baz Castillo