From 32309260b9b62ec1025d9c86db89a17953f5a6a5 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 30 Nov 2017 23:18:02 -0800 Subject: [PATCH] Fixed: Sorting Manual Import by relative path Fixes #2313 --- src/UI/ManualImport/ManualImportCollection.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/UI/ManualImport/ManualImportCollection.js b/src/UI/ManualImport/ManualImportCollection.js index c7cff70f7..b4df7a842 100644 --- a/src/UI/ManualImport/ManualImportCollection.js +++ b/src/UI/ManualImport/ManualImportCollection.js @@ -36,6 +36,12 @@ var Collection = PageableCollection.extend({ }, sortMappings : { + relativePath : { + sortValue : function(model, attr, order) { + return model.get(attr).toLowerCase(); + } + }, + series : { sortValue : function(model, attr, order) { var series = model.get(attr); @@ -71,4 +77,4 @@ var Collection = PageableCollection.extend({ Collection = AsSortedCollection.call(Collection); -module.exports = Collection; \ No newline at end of file +module.exports = Collection;