sort.js

sorts array of objects by the time field