Skip to content

Commit

Permalink
Fix sample getSortParam (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
josiasmontag authored and ratiw committed Jun 15, 2018
1 parent ebe7126 commit 1f01bcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Sorting.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ When Vuetable needs to make a request to the server, it will first check if this
//
getSortParam: function(sortOrder) {
return sortOrder.map(function(sort) {
return (sort.direction === 'desc' ? '+' : '') + sort.field
return (sort.direction === 'desc' ? '-' : '') + sort.field
}).join(',')
}
```

0 comments on commit 1f01bcf

Please sign in to comment.