diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-09-29 01:49:55 +0400 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-09-29 01:50:28 +0400 |
commit | 8d3c3785bc56794b9d89cf74ee027a8ba9c2f9ed (patch) | |
tree | 9dd6d9943a510db7de2cf9244c0a09497ce20208 /apps | |
parent | f29f601ec4d0a569baa8fcc8c5e946c50a9703d6 (diff) |
sort music collection
Diffstat (limited to 'apps')
-rw-r--r-- | apps/media/js/collection.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/media/js/collection.js b/apps/media/js/collection.js index 7eb027348ce..96a5b79f81b 100644 --- a/apps/media/js/collection.js +++ b/apps/media/js/collection.js @@ -50,6 +50,10 @@ Collection={ } } + Collection.artists.sort(function(a,b){ + return a.name.localeCompare(b.name); + }); + Collection.loaded=true; Collection.loading=false; for(var i=0;i<Collection.loadedListeners.length;i++){ |