From 8ddd82faf17b5c36f3e9888321bde06160d9eaf1 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 5 Jun 2018 00:24:59 +0200 Subject: task queuing workingggg --- app/client/util/sort.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/client/util/sort.js') 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] -- cgit v1.2.3-70-g09d2