summaryrefslogtreecommitdiff
path: root/app/client/util
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-05 00:24:59 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-05 00:24:59 +0200
commit8ddd82faf17b5c36f3e9888321bde06160d9eaf1 (patch)
tree2c2aaf116462252ce19281367231478a570d08d2 /app/client/util
parent477f2489f2a1e91667f923c9d4681456a8e7a4c4 (diff)
task queuing workingggg
Diffstat (limited to 'app/client/util')
-rw-r--r--app/client/util/sort.js4
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]