Skip to content

Commit

Permalink
Merge pull request #3327 from Roardom/sort-specials-group
Browse files Browse the repository at this point in the history
(Update) Sort specials in torrent grouping
  • Loading branch information
HDVinnie committed Dec 31, 2023
2 parents e2d9707 + 605483c commit c937975
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Livewire/PersonCredit.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ function ($tv) {
),
'Specials' => $packOrSpecialOrSeasons
->groupBy(fn ($torrent) => 'Special '.$torrent->episode_number)
->sortKeys(SORT_NATURAL)
->map(
fn ($episode) => $episode
->sortBy('type.position')
Expand Down
1 change: 1 addition & 0 deletions app/Http/Livewire/TorrentSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ function ($tv) {
),
'Specials' => $packOrSpecialOrSeasons
->groupBy(fn ($torrent) => 'Special '.$torrent->episode_number)
->sortKeys(SORT_NATURAL)
->map(
fn ($episode) => $episode
->sortBy('type.position')
Expand Down

0 comments on commit c937975

Please sign in to comment.