function sortFactory(key) {
  return function sortNumeric(a, b) {
    if (b[key] < a[key]) {
      return -1;
    }
    if (b[key] > a[key]) {
      return 1;
    }
    return 0;
  };
}
function sortFactory(key) {
  return function sortNumeric(a, b) {
    if (b[key] < a[key]) {
      return -1;
    }
    if (b[key] > a[key]) {
      return 1;
    }
    return 0;
  };
}
function sortFactory ( key ) { return function sortNumeric ( a , b ) { if ( b [ key ] < a [ key ] ) { return - 1 ; } if ( b [ key ] > a [ key ] ) { return 1 ; } return 0 ; } ; }
Returns a function that sorts reverse numerically by value of `key`
Returns a function that sorts reverse numerically by value of key
Creates a function that sorts the data by the given key.