From: John W Higgins Date: 2013-06-29T05:45:48+09:00 Subject: Re: Best practice to use Enumerable#Sort and Enumerable#Sort_by --001a11c396b68d31c704e03cf6d9 Content-Type: text/plain; charset=ISO-8859-1 The #sort_by block tells the engine which field to use when sorting an item. The #sort block gets called with the 2 items being compared and the block should return how the items compare (-1, 0, 1). John --001a11c396b68d31c704e03cf6d9 Content-Type: text/html; charset=ISO-8859-1
The #sort_by block tells the engine which field to use when sorting an item.
The #sort block gets called with the 2 items being compared and the block should return how the items compare (-1, 0, 1).

John

--001a11c396b68d31c704e03cf6d9--