From: Mischa POSLAWSKY Date: Sat, 11 May 2019 14:36:39 +0000 (+0200) Subject: suborder by ladder id for equal number of games X-Git-Tag: v0.3~2 X-Git-Url: http://git.shiar.net/sc2-widget/commitdiff_plain/6f8ef036acc8859b467c34e77a0a9050bf69e79b suborder by ladder id for equal number of games --- diff --git a/getsc2clan b/getsc2clan index 6f486f9..3a6e237 100755 --- a/getsc2clan +++ b/getsc2clan @@ -41,6 +41,7 @@ my @ladders = ( nsort_by { -($_->{ladder}->[0]->{wins} + $_->{ladder}->[0]->{losses}) } # activity desc + nsort_by { $_->{ladder}->[0]->{ladderId} } # stable order grep { !$clanmatch or all { $_->{clanName} =~ $clanmatch } $_->{characters}->@*