1 // Translate for example "-name" to [ 'name', 'DESC' ]
2 function getSort (value) {
6 if (value.substring(0, 1) === '-') {
8 field = value.substring(1)
14 return [ field, direction ]
17 // ---------------------------------------------------------------------------