Simple, self-explanatory code snippets.
_(your_array).sortBy(
function(elem) {
return [elem.field_to_sort_by_1, elem.field_to_sort_by_1];
}
);
No comments:
Post a Comment