7 // Translate for example "-name" to [ 'name', 'DESC' ]
8 function getSort (value) {
12 if (value.substring(0, 1) === '-') {
14 field = value.substring(1)
20 return [ field, direction ]
23 // ---------------------------------------------------------------------------
25 module.exports = utils