_.sortBy(collection, [iteratees=[_.identity]])
Creates an array of elements, sorted in ascending order by the results of running each element in a collection thru each iteratee.
オブジェクトの配列を並び替えてくれる
非破壊的
iterateesの部分で複数要素を指定できるので、かなり便利
// objの中身をsort_num、nameの順に並び替え
obj = _.sortBy(obj, ['sort_num', 'name']);