From 18472645a7879baf00332a7ee5be8c4338bb8d21 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 8 Jul 2020 23:37:40 +0200 Subject: adding annotations of type video --- animism-align/frontend/util/index.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'animism-align/frontend/util/index.js') diff --git a/animism-align/frontend/util/index.js b/animism-align/frontend/util/index.js index a50bccb..afebe13 100644 --- a/animism-align/frontend/util/index.js +++ b/animism-align/frontend/util/index.js @@ -313,6 +313,12 @@ export const orderByFn = (s='name asc') => { case 'priority': mapFn = a => [parseInt(a.priority) || parseInt(a.id) || 1000, a] sortFn = numericSort[direction] + case 'title': + mapFn = a => [a.title || "", a] + sortFn = stringSort[direction] + case 'author': + mapFn = a => [a.author || "", a] + sortFn = stringSort[direction] case 'name': default: mapFn = a => [a.name || "", a] -- cgit v1.2.3-70-g09d2