Playlists sorting; Default to by name

This commit is contained in:
James Barnsley
2016-12-14 08:51:11 +13:00
parent e599692c3a
commit 5d1598e887
4 changed files with 20 additions and 8 deletions

View File

@ -35,7 +35,7 @@ class LibraryPlaylists extends React.Component{
renderView(){
if( !this.props.playlists ) return null
var playlists = this.props.playlists
var playlists = Object.assign([], this.props.playlists)
if( this.props.sort ){
playlists = helpers.sortItems(playlists, this.props.sort, this.props.sort_reverse)
}