From 1d70c979835f45d4f7d61781d2b7b58ff464948f Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 6 Mar 2015 22:14:33 -0800 Subject: [PATCH] Fixed: Sorting on path in series editor --- src/UI/Series/SeriesCollection.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/UI/Series/SeriesCollection.js b/src/UI/Series/SeriesCollection.js index 44faf3dc5..fa7e4422e 100644 --- a/src/UI/Series/SeriesCollection.js +++ b/src/UI/Series/SeriesCollection.js @@ -66,10 +66,11 @@ var Collection = PageableCollection.extend({ }, sortMappings : { - 'title' : { + title : { sortKey : 'sortTitle' }, - 'nextAiring' : { + + nextAiring : { sortValue : function(model, attr, order) { var nextAiring = model.get(attr); @@ -92,6 +93,14 @@ var Collection = PageableCollection.extend({ return percentOfEpisodes + episodeCount / 1000000; } + }, + + path : { + sortValue : function(model) { + var path = model.get('path'); + + return path.toLowerCase(); + } } } });