Index: Slim/Web/Pages/BrowseDB.pm =================================================================== --- Slim/Web/Pages/BrowseDB.pm (revision 17844) +++ Slim/Web/Pages/BrowseDB.pm (working copy) @@ -191,6 +191,15 @@ } } + # XXXX - sort is not currently generated or used. + # The orderBy is used by the artwork/album sorting feature. + my ($filters, $cond, $sort) = $topRS->generateConditionsFromFilters({ + 'rs' => $rs, + 'level' => $level, + 'levels' => \@levels, + 'params' => $params, + }); + # We want to include Compilations in the pwd, so we need the # artist, but not in the actual search. # @@ -259,15 +268,8 @@ $otherParams{'artwork'} = $artwork; } - # XXXX - sort is not currently generated or used. - # The orderBy is used by the artwork/album sorting feature. - my ($filters, $cond, $sort) = $topRS->generateConditionsFromFilters({ - 'rs' => $rs, - 'level' => $level, - 'levels' => \@levels, - 'params' => $params, - }); + my $browseRS = $topRS->descend($filters, $cond, $orderBy, @levels[0..$level]); my $count = 0; my $start = 0;