Skip to content

Commit

Permalink
sort Playlists By DJ without regard to 'DJ' prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketMan committed Jan 1, 2024
1 parent 33d3368 commit 7a79392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/Playlists.php
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ public function emitViewDJMain() {
$records = Engine::api(IDJ::class)->getActiveAirnames($viewAll);
$dj = [];
while($records && ($row = $records->fetch())) {
$row["sort"] = preg_match("/^the /i", $row[1])?substr($row[1], 4):$row[1];
$row["sort"] = preg_match("/^(the|dj)\s+(.+)/i", $row[1], $matches) ? $matches[2] : $row[1];
// sort symbols beyond Z with the numerics and other special chars
$row["cur"] = UI::deLatin1ify(mb_strtoupper(mb_substr($row["sort"], 0, 1)));
if($row["cur"] > "Z") {
Expand Down

0 comments on commit 7a79392

Please sign in to comment.