How would you sort this array with these objects by distance. So that you have the objects sorted from smallest distance to biggest distance ?
Object { dista
This worked for me
var files=data.Contents; files = files.sort(function(a,b){ return a.LastModified - b. LastModified; });
OR use Lodash to sort the array
files = _.orderBy(files,'LastModified','asc');