Page 1 of 1

Sortable Columns

PostPosted: Thu Aug 10, 2006 6:14 pm
by crisbtreets
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

PostPosted: Thu Aug 10, 2006 6:48 pm
by sindre_mehus
I can't promise sortable columns in the final version, but at least I've implemented sorting by track number.

Sindre

PostPosted: Thu Aug 10, 2006 7:06 pm
by crisbtreets
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

PostPosted: Thu Mar 01, 2007 8:45 pm
by zedug
^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!

PostPosted: Fri Mar 02, 2007 1:37 pm
by sindre_mehus
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

PostPosted: Fri Mar 02, 2007 6:01 pm
by zedug
Indeed, but for backwards compatibility reasons (eg my car mp3 player doesnt support id3v2), I only use id3v1.

PostPosted: Sun Mar 04, 2007 6:06 am
by zedug
I switched to ID3v2, updated the Disc # field, but the result is still the same....

PostPosted: Sun Mar 04, 2007 9:18 am
by sindre_mehus
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

PostPosted: Sun Mar 04, 2007 6:43 pm
by zedug
For now I find the easiest is to go with track numbers; just keep them incrementing on the second CD...

status?

PostPosted: Sun May 03, 2009 2:49 pm
by dobson
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.

PostPosted: Wed May 20, 2009 2:28 am
by 3R3
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

PostPosted: Wed May 20, 2009 5:08 pm
by sindre_mehus
subsonic\jetty\webapp\script is the proper place.

PostPosted: Wed May 20, 2009 9:20 pm
by 3R3
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!