Page 1 of 1

Sorting albums by year

PostPosted: 03 Dec 2015, 20:36
by Grundgütiger
I don't know if this request has been brought up before. I hope it did:

At least within an artist's section albums should be sorted by year and not alphabetically. An alphabetical sorting is ignorant and I hope it is not too difficult to read metatags to sort albums by their "natural" order: When they were released!

It's really great to browse albums that way...

Re: Sorting albums by year

PostPosted: 25 Jan 2016, 17:31
by BayleeWylie
Hi there! Just trying to bring back this old topic alive as I would really enjoy this myself. Is there a way to do it myself like tweaking the runeui.js or something like that?

It would also be even better if, in the albums view, albums were sorted alphabetically by artist and by years within the same artist.

Perhaps it could be changed there? (from runeui.js)
Code: Select all
    // Album list (static)
    content += divOpen + '<div id="home-albums" class="home-block' + toggleMPD + '" data-path="Albums" data-browsemode="album"><i class="fa fa-dot-circle-o"></i><h3>Albums</h3>browse MPD database by album</div>' + divClose;
    // Artist list (static)
    content += divOpen + '<div id="home-artists" class="home-block' + toggleMPD + '" data-path="Artists" data-browsemode="artist"><i class="fa fa-users"></i><h3>Artists</h3>browse MPD database by artist</div>' + divClose;


Or most likely there?
Code: Select all
            } else if (GUI.browsemode === 'album' || GUI.browsemode === 'albumfilter') {
            // browse by album
                if (inputArr.file !== undefined) {
                    content = '<li id="db-' + (i + 1) + '" data-path="';
                    content += inputArr.file;
                    content += '"><i class="fa fa-bars db-action" title="Actions" data-toggle="context" data-target="#context-menu-file"></i><i class="fa fa-music db-icon"></i><span class="sn">';
                    content += inputArr.Title + ' <span>' + timeConvert(inputArr.Time) + '</span></span>';
                    content += ' <span class="bl">';
                    content +=  inputArr.Artist;
                    content += ' - ';
                    content +=  inputArr.Album;
                    content += '</span></li>';
                } else if (inputArr.album !== '') {
                    content = '<li id="db-' + (i + 1) + '" class="db-folder db-album" data-path="';
                    content += inputArr.album.replace(/\"/g,'&quot;');
                    content += '"><i class="fa fa-bars db-action" title="Actions" data-toggle="context" data-target="#context-menu-album"></i><span><i class="fa fa-dot-circle-o"></i>';
                    content += inputArr.album;
                    content += '</span></li>';
                }
            } else if (GUI.browsemode === 'artist') {
            // browse by artist
                if (inputArr.album !== undefined) {
                    content = '<li id="db-' + (i + 1) + '" class="db-folder db-album" data-path="';
                    content += inputArr.album;
                    content += '"><i class="fa fa-bars db-action" title="Actions" data-toggle="context" data-target="#context-menu-album"></i><span><i class="fa fa-dot-circle-o"></i>';
                    content += (inputArr.album !== '') ? inputArr.album : 'Unknown album';
                    content += '</span></li>';
                } else if (inputArr.artist !== '') {
                    content = '<li id="db-' + (i + 1) + '" class="db-folder db-artist" data-path="';
                    content += inputArr.artist;
                    content += '"><i class="fa fa-bars db-action" title="Actions" data-toggle="context" data-target="#context-menu"></i><span><i class="fa fa-user"></i>';
                    content += inputArr.artist;
                    content += '</span></li>';
                }

Re: Sorting albums by year

PostPosted: 25 Jan 2016, 18:52
by ACX
Hi BayleeWylie, my suggestion is to wait for the new refactor of the code which will come soon. I'd also like to introduce many improvements for the search and the browsing in the library.

Re: Sorting albums by year

PostPosted: 25 Jan 2016, 20:06
by BayleeWylie
Oh great! It's nice to know this is considered and that new stuff is coming. I'm excited about what is coming next! :D