Sorting albums by year

Suggestions/requests/ideas for RuneAudio core features and functions

Sorting albums by year

Postby Grundgütiger » 03 Dec 2015, 20:36

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...
Grundgütiger
 

Re: Sorting albums by year

Postby BayleeWylie » 25 Jan 2016, 17:31

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>';
                }
Raspberry Pi 2
IQaudIO PI-DAC+
HifimeDIY U2 Sabre ES9023
Sennheiser HD598SE
User avatar
BayleeWylie
 
Posts: 33
Joined: 14 Jan 2016, 19:20
Location: Canada

Re: Sorting albums by year

Postby ACX » 25 Jan 2016, 18:52

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.
User avatar
ACX
RuneAudio co-founder
 
Posts: 1688
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: Sorting albums by year

Postby BayleeWylie » 25 Jan 2016, 20:06

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
Raspberry Pi 2
IQaudIO PI-DAC+
HifimeDIY U2 Sabre ES9023
Sennheiser HD598SE
User avatar
BayleeWylie
 
Posts: 33
Joined: 14 Jan 2016, 19:20
Location: Canada

support RuneAudio Donate with PayPal


Return to Feature request

Who is online

Users browsing this forum: No registered users and 1 guest