code: 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;
      }
    });
  }
docs: normalize the "sort" value