It's easy enough to write our own comparison function:
Or inline (c/o Marco Demaio):
use underscore, its small and awesome...
sortBy_.sortBy(list, iterator, [context]) Returns a sorted copy of list, ranked in ascending order by the results of running each value through iterator. Iterator may also be the string name of the property to sort by (eg. length).
Don't get why people make it so complicated:
Swap the operator to have it sorted by reverse alphabetical order.
In ES6/ES2015 or later we can do this way:
If we have duplicate last names we might sort those by first name-