Skip to content

Commit

Permalink
fix sort by decade harder
Browse files Browse the repository at this point in the history
  • Loading branch information
LlysiX committed Nov 9, 2024
1 parent f7eeda4 commit 580c8d8
Showing 1 changed file with 39 additions and 34 deletions.
73 changes: 39 additions & 34 deletions _ark/config/song_select.dta
Original file line number Diff line number Diff line change
Expand Up @@ -77,41 +77,46 @@
(browser_group
($offer)
{$offer genre}))
(by_decade
(cmp_song_to_song
($lhs $rhs)
{if_else
{$lhs has_data decade}
{if_else
{$rhs has_data decade}
{$this
cmp
$lhs
$rhs
(kSTDecade)
(kSTArtist)
(kSTName)}
-1}
{if_else
{$rhs has_data decade}
1
{$this
cmp
$lhs
$rhs
(kSTDecade)
(kSTArtist)
(kSTName)}}
}
)
(browser_group
($offer)
{if_else {$offer has_data decade}
{sprint {$offer decade}}
"Unknown"
}
(by_decade
(cmp_song_to_song
($lhs $rhs)
{if_else {&& {$lhs has_data decade} {$rhs has_data decade}}
{$this
cmp
$lhs
$rhs
(kSTDecade)
(kSTArtist)
(kSTName)
}
{do
{if_else {&& {$lhs has_data decade} {! {$rhs has_data decade}}}
-1
{if_else {&& {! {$lhs has_data decade}} {$rhs has_data decade}}
1
{if {&& {! {$lhs has_data decade}} {! {$rhs has_data decade}}}
{$this
cmp
$lhs
$rhs
(kSTArtist)
(kSTName)
}
}
}
}
}
}
)
(sub by_artist))
(browser_group
($offer)
{if_else {$offer has_data decade}
{sprint {$offer decade}}
"Unknown"
}
)
(sub by_artist)
)
(by_origin
(cmp_song_to_song
($lhs $rhs)
Expand Down

0 comments on commit 580c8d8

Please sign in to comment.