prod/service-worker-28ddbc7ef7a575da0539a0f05f4bfdae.js
function massageSort(sort) {
  if (!Array.isArray(sort)) {
    throw new Error('invalid sort json - should be an array');
  }
  return sort.map(function (sorting) {
    if (typeof sorting === 'string') {
      var obj = {};
      obj[sorting] = 'asc';
      return obj;
    } else {
      return sorting;
    }
  });
}
function massageSort(sort) {
  if (!Array.isArray(sort)) {
    throw new Error('invalid sort json - should be an array');
  }
  return sort.map(function (sorting) {
    if (typeof sorting === 'string') {
      var obj = {};
      obj[sorting] = 'asc';
      return obj;
    } else {
      return sorting;
    }
  });
}
function massageSort ( sort ) { if ( ! Array . isArray ( sort ) ) { throw new Error ( 'invalid sort json - should be an array' ) ; } return sort . map ( function ( sorting ) { if ( typeof sorting === 'string' ) { var obj = { } ; obj [ sorting ] = 'asc' ; return obj ; } else { return sorting ; } } ) ; }
normalize the "sort" value
normalize the sort value