From: "Iñaki Baz Castillo" Date: 2011-07-01T20:30:45+09:00 Subject: Re: How to order Structs based on two fields 2011/7/1 Gunther Diemant : > Nice. Little mistake (same as mine). Code should be array.sort_by { |e| > [e.a, -e.b] } Yeah :) So I've lot of solutions right now, and all of them work :) I'll do some benchmarks and select the fastest one. Really thanks to all, this community is really impresive. -- Iñaki Baz Castillo