diff options
Diffstat (limited to 'app/client/util')
| -rw-r--r-- | app/client/util/sort.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/client/util/sort.js b/app/client/util/sort.js index 4c07a96..c5e3a37 100644 --- a/app/client/util/sort.js +++ b/app/client/util/sort.js @@ -22,6 +22,10 @@ export const orderByFn = (s='name asc') => { mapFn = a => [+new Date(a.date || a.created_at), a] sortFn = numericSort[direction] break + case 'updated_at': + mapFn = a => [+new Date(a.updated_at), a] + sortFn = numericSort[direction] + break case 'priority': mapFn = a => [parseInt(a.priority) || parseInt(a.id) || 1000, a] sortFn = numericSort[direction] |
