From a450fa75edb927b7568b8a3198f9209c6a4c7f79 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 3 Jun 2018 14:46:18 +0200 Subject: adjusting the form, calling samplernn tasks --- app/client/util/sort.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/client/util/sort.js') diff --git a/app/client/util/sort.js b/app/client/util/sort.js index cc1b462..78f17a0 100644 --- a/app/client/util/sort.js +++ b/app/client/util/sort.js @@ -15,7 +15,7 @@ export const orderByFn = (s='name asc') => { sortFn = numericSort[direction] break case 'size': - mapFn = a => [a.size, a] + mapFn = a => [parseInt(a.size) || 0, a] sortFn = numericSort[direction] break case 'date': @@ -24,7 +24,7 @@ export const orderByFn = (s='name asc') => { break case 'name': default: - mapFn = a => [a.id || a.name, a] + mapFn = a => [a.name || "", a] sortFn = stringSort[direction] break } -- cgit v1.2.3-70-g09d2