Underscore.js Collections: SortBy
HTML
<script src="http://documentcloud.github.com/underscore/underscore-min.js"></script>
<a target="parent" href="http://underscorejs.org/#sortBy">Learn More</a>
JavaScript
var arr=[{"LastUpdatedOn":"2018-12-04T08:58:47.119Z","TaggedUri":"/V3/FileStorage/Files/CF63D8B0-F7A2-11E8-9BB5-E138A819BD84","Value":"FloorPlan","Keyword":"DocumentType"},{"LastUpdatedOn":"2018-11-30T14:15:47.138Z","TaggedUri":"/V3/FileStorage/Files/6E8E3030-F4AA-11E8-A4FC-BD11179D7CED","Value":"FloorPlan","Keyword":"DocumentType"},{"LastUpdatedOn":"2018-12-07T09:13:35.401Z","TaggedUri":"/V3/FileStorage/Files/6016A180-FA00-11E8-9163-B177349D8FB4","Value":"FloorPlan","Keyword":"DocumentType"},{"LastUpdatedOn":"2018-11-30T13:24:22.565Z","TaggedUri":"/V3/FileStorage/Files/4001B360-F4A3-11E8-BE59-218165BFE100","Value":"FloorPlan","Keyword":"DocumentType"},{"LastUpdatedOn":"2018-12-04T08:57:51.596Z","TaggedUri":"/V3/FileStorage/Files/AE4C78D0-F7A2-11E8-9BB5-E138A819BD84","Value":"FloorPlan","Keyword":"DocumentType"},{"LastUpdatedOn":"2018-12-07T11:35:45.715Z","TaggedUri":"/V3/FileStorage/Files/3C8D8E40-FA14-11E8-9BB5-E138A819BD84","Value":"FloorPlan","Keyword":"DocumentType"},{"LastUpdatedOn":"2018-11-30T11:04:57.469Z","TaggedUri":"/V3/FileStorage/Files/C60531D0-F48F-11E8-A4FC-BD11179D7CED","Value":"FloorPlan","Keyword":"DocumentType"},{"LastUpdatedOn":"2018-12-03T05:50:22.574Z","TaggedUri":"/V3/FileStorage/Files/52F3B590-F6BF-11E8-995F-53862D74E86D","Value":"FloorPlan","Keyword":"DocumentType"}]
//For illustration...
// 1 0 2
// So 3 % 3 = 0, so 3 will be the first number in the array
// So 1 % 3 = 1, so 1 will be the second number in the array
// So 2 % 3 = 2, so 2 will be the last number in the array
var testSortBy = _.sortBy(arr, 'LastUpdatedOn');
console.log(JSON.stringify(testSortBy));
//[3, 1, 2]