Skip to content

Commit

Permalink
Sprachen nach Vollständigkeit sortieren
Browse files Browse the repository at this point in the history
  • Loading branch information
gharlan committed Mar 23, 2017
1 parent 566e8ae commit 2131974
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pages/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
}
}

usort($languages, function ($a, $b) use ($total) {
return $total[$b] > $total[$a] ? 1 : -1;
});

$fragment = new rex_fragment([
'languages' => $languages,
'packages' => $packages,
Expand Down

0 comments on commit 2131974

Please sign in to comment.