I want to do something like this:
var data = [ { sortData: {a: \'a\', b: 2} }, { sortData: {a: \'a\', b: 1} }, { sort
The awesome, simple way is:
_.sortBy(data, [function(item) { return item.sortData.a; }, function(item) { return item.sortData.b; }]);
I found it from check the source code of lodash, it always check the function one by one.
Hope that help.