Applay sort function to the JSon object
function sortByKey(array, key) { return array.sort( function (a, b) { var x = a[key]; var y = b[key]; return ((x < y) ? - 1 : ((x > y) ? 1 : 0 )); }); }
SharePoint Framework Development center