'use strict';

function sortArrayByProperty(arrayToSort, property) {
  return [...arrayToSort].sort((a, b) => a[property].localeCompare(b[property]));
}

exports.sortArrayByProperty = sortArrayByProperty;
//# sourceMappingURL=sortArrayByProperty.js.map
