Resolving broken sorting, fixes #366

This commit is contained in:
James Barnsley
2019-02-18 18:52:35 +13:00
parent 350cb2a72e
commit 5aaf72f852
6 changed files with 2936 additions and 2233 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -98,7 +98,7 @@
// Release details // Release details
// These are automatically injected to built HTML // These are automatically injected to built HTML
var build = "1550432146"; var build = "1550468519";
var version = "3.32.4"; var version = "3.32.4";
// Construct the script tag // Construct the script tag

View File

@ -1272,6 +1272,8 @@ export let sortItems = function (array, property, reverse = false, sort_map = nu
// Otherwise continue looping to the end of the split property // Otherwise continue looping to the end of the split property
value = value[property_element]; value = value[property_element];
} }
return value;
} }
function compare(a,b){ function compare(a,b){

View File

@ -272,7 +272,7 @@ class LibraryArtists extends React.Component{
}, },
{ {
label: 'Followers', label: 'Followers',
value: 'followers.total' value: 'followers'
}, },
{ {
label: 'Popularity', label: 'Popularity',

View File

@ -227,7 +227,7 @@ class LibraryPlaylists extends React.Component{
label: 'Owner' label: 'Owner'
}, },
{ {
value: 'tracks.total', value: 'tracks_total',
label: 'Tracks' label: 'Tracks'
}, },
{ {