Sortable Columns

Got an idea? Missing something? Post your feature request here.

Moderator: moderators

Sortable Columns

Postby crisbtreets » Thu Aug 10, 2006 6:14 pm

I am loving the new Beta!!

I think that sortable columns in the Browser window would be nice. You could do simple javascript sorting on the table. Some of my files don't have the track number and it would be nice to sort on tack number.

Thanks
crisbtreets
 
Posts: 24
Joined: Wed Jul 12, 2006 9:25 pm
Location: Boston, MA

Postby sindre_mehus » Thu Aug 10, 2006 6:48 pm

I can't promise sortable columns in the final version, but at least I've implemented sorting by track number.

Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby crisbtreets » Thu Aug 10, 2006 7:06 pm

Here is a javascript file that does everything you need. I have used this and it works great. Might need to tweek it a bit.

http://kryogenix.org/code/browser/sorttable/

Hopes this makes things easyer for ya.

Thanks
crisbtreets
 
Posts: 24
Joined: Wed Jul 12, 2006 9:25 pm
Location: Boston, MA

Postby zedug » Thu Mar 01, 2007 8:45 pm

^bump^

Just got started with subsonic, using 2.9 and loving it... Being able to sort on different colums will just make it perfect !

My problem is that for albums that span over 2 CDs I keep the original track numbers and add a digit in front of the file. For instance if I consider the double-CD live Pink Floyd album "Is there anybody out there?", there are two files that both are tagged with track#1:
101 - Mc Atmos.mp3 -> first track of first CD
201 - Hey You.mp3 -> first track of second CD

...because the default album browser order is the track number, the track list shows the following order:
101
201
102
202
...

instead of
101
102
..
201
202
...


Yes I suppose the obvious answer is to change my tagging method and just increment the track numbers but honestly I have 100+GB of files that I don't feel like going through...

thanks in advance, and thanks for this terrific piece of software - it's great!
zedug
 
Posts: 5
Joined: Thu Mar 01, 2007 8:39 pm

Postby sindre_mehus » Fri Mar 02, 2007 1:37 pm

The "correct" way to implement this would be to consider disc number info in the ID3 tags. Of course, this only works if your MP3's are tagged with the correct disc number. Can you please check that? If you use Winamp, select "File > View File Info" and look under "ID3V2 > Disc #"

Thanks,
Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby zedug » Fri Mar 02, 2007 6:01 pm

Indeed, but for backwards compatibility reasons (eg my car mp3 player doesnt support id3v2), I only use id3v1.
zedug
 
Posts: 5
Joined: Thu Mar 01, 2007 8:39 pm

Postby zedug » Sun Mar 04, 2007 6:06 am

I switched to ID3v2, updated the Disc # field, but the result is still the same....
zedug
 
Posts: 5
Joined: Thu Mar 01, 2007 8:39 pm

Postby sindre_mehus » Sun Mar 04, 2007 9:18 am

Sorry, I think my posting was a bit unclear. Subsonic currently does not use the disc number for anything. My point was that using disc number would be the proper way to sort tracks in a multi-disc album.

Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby zedug » Sun Mar 04, 2007 6:43 pm

For now I find the easiest is to go with track numbers; just keep them incrementing on the second CD...
zedug
 
Posts: 5
Joined: Thu Mar 01, 2007 8:39 pm

status?

Postby dobson » Sun May 03, 2009 2:49 pm

it's been a couple years since the last post in this thread. I'm just wondering if there are any current plans to support proper multi-disc sorting in the future.

If not, is the current workarounds limited to keeping the track numbers incrementing on the second disc, etc... ?

thanks as always for this wonderful program.
dobson
 
Posts: 46
Joined: Tue Apr 14, 2009 10:10 pm

Postby 3R3 » Wed May 20, 2009 2:28 am

i tried to mod this js sorting lib that crisbtreets mentioned (from here: http://kryogenix.org/code/browser/sorttable/) into the playlist.jsp, but apparently it conflicts with the existing js in the file OR i just didnt put the library file sorttables.js in the right folder. Sindre, could you tell me in which path playlist.jsp looks for included js files in the header (<head></head>)? i tried subsonic\jetty\webapp\ and subsonic\jetty\webapp\script\ to no avail.

thanks
User avatar
3R3
 
Posts: 332
Joined: Mon May 04, 2009 2:09 pm
Location: Germany

Postby sindre_mehus » Wed May 20, 2009 5:08 pm

subsonic\jetty\webapp\script is the proper place.
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby 3R3 » Wed May 20, 2009 9:20 pm

thanks for the info, now that you eliminated this cause of the error for me, i just have to work out the js conflicting with the script *goes to batcave to study code* :shock:

and i'm looking forward to the next release, thanks for the great work on subsonic!
User avatar
3R3
 
Posts: 332
Joined: Mon May 04, 2009 2:09 pm
Location: Germany


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 4 guests