dataSortingQryStr(sortBy, descending) {
          // It's actually a good idea to include ID (primary key) as the last sort order column to make the ordering predictable when, for example,
          // customers have the same last name
          let primaryKeyOrderExpression = `filter[order]=${ctx.app.$model.primaryKeyPropertyKey}`;
          if (!sortBy) return primaryKeyOrderExpression; // Defensively respond to any problem with sortBy
          return `filter[order]=${sortBy}${descending ? '%20DESC' : '%20ASC'}&${primaryKeyOrderExpression}`;
        }
/**
         * Given the sortBy property key and the descending flag return the LoopBack query string fragment for sorting data during retrieval
         * @param {string} sortBy Property key by which to sort
         * @param {boolean} descending True for descending order, false for ascending
         * @returns LoopBack query string fragment for sorting
         */
Given the sortBy property key and the descending flag return the LoopBack query string fragment for sorting data during retrieval
@param {string} sortBy Property key by which to sort
@param {boolean} descending True for descending order, false for ascending
@returns LoopBack query string fragment for sorting
Given the sortBy property key and the descending flag return the LoopBack query string fragment for sorting data during retrieval @param { string } sortBy Property key by which to sort @param { boolean } descending True for descending order false for ascending @returns LoopBack query string fragment for sorting
dataSortingQryStr(sortBy, descending) {
          let primaryKeyOrderExpression = `filter[order]=${ctx.app.$model.primaryKeyPropertyKey}`;
          if (!sortBy) return primaryKeyOrderExpression; 
          return `filter[order]=${sortBy}${descending ? '%20DESC' : '%20ASC'}&${primaryKeyOrderExpression}`;
        }
dataSortingQryStr ( sortBy , descending ) { let primaryKeyOrderExpression = ` ${ ctx . app . $model . primaryKeyPropertyKey } ` ; if ( ! sortBy ) return primaryKeyOrderExpression ; return ` ${ sortBy } ${ descending ? '%20DESC' : '%20ASC' } ${ primaryKeyOrderExpression } ` ; }
Given the sortBy property key and the descending flag return the LoopBack query string fragment for sorting data during retrieval
 @param {string} sortBy Property key by which to sort
 @param {boolean} descending True for descending order, false for ascending
 @returns LoopBack query string fragment for sorting
Given the sortBy property key and the descending flag return the LoopBack query string fragment for sorting data during retrieval @param { string } sortBy Property key by which to sort @param { boolean } descending True for descending order false for ascending @returns LoopBack query string fragment for sorting
// It's actually a good idea to include ID (primary key) as the last sort order column to make the ordering predictable when, for example, // customers have the same last name // Defensively respond to any problem with sortBy