Quantcast
Channel: Squeezebox : Community : Forums
Viewing all articles
Browse latest Browse all 6235

Play All / Add All track order

$
0
0
> OK, I spoke too soon! Or rather, I should have experimented more before
> posting! Anyway, the following seems to work for year order first - I
> assum its correct?
>
>
> Code:
> --------------------
>
> my $albumSort
> = $sqlHelperClass->append0("album.year") . ", " . $sqlHelperClass->append0("album.titlesort") . " $collate"
> . ', me.disc, me.tracknum, '
> . $sqlHelperClass->append0("me.titlesort") . " $collate";
>
> --------------------


That's pretty much what I came up with in a quick test, too.

If you go further down the code around line 3400 you'll see that it's
parsing parameters, among which a "sort" key is expected. You could use
this to overwrite the sort order depending on the sort value.

If you want to know how the list is created when querying, then open
Queries.pm around line 440 where the $order_by is defined, depending on
the sort order requested. You could use this as the reference.

--

Michael

Viewing all articles
Browse latest Browse all 6235

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>