define(['utils/sortArray'], function(sortArray) {
  'use strict';

  return function sortBuildList(arr) {
    function getBuildScore(object) {
      return new Date(object.dateCreated).getTime();
    }

    return sortArray(arr, getBuildScore);
  }
});

define(['utils/sortArray'], function(sortArray) {
  'use strict';

  return function sortBuildList(arr) {
    function getBuildScore(object) {
      return [new Date(object.dateCreated).getTime()];
    }

    return sortArray(arr, getBuildScore);
  }
});

Return array as score value for build list
Return array as score value for build list
