Creates comparator function based on property value From https://stackoverflow.com/questions/1129216/sort-array-of-objects-by-string-property-value Returns a comparator function for use in Array.sort
The prop to sort by
Creates comparator function based on property value From https://stackoverflow.com/questions/1129216/sort-array-of-objects-by-string-property-value Returns a comparator function for use in Array.sort