documentcloud/underscore — pull request #532 by npcode (2012-03-30 17:45:58+00:00)
Title: Allow to use a string as iterator of _.sortBy()

If the iterator is a string instead of a function, sorts by the property named by the iterator on each of the values, as _.groupBy() does.

e.g.)
_.sortBy(["one", "two", "three", "four", "five"], 'length');
=> ["one", "two", "four", "five", "three"]