Naming tweak

This commit is contained in:
Jeff Moser
2010-10-14 21:51:43 -04:00
parent 110463ad49
commit 455f2b3061
66 changed files with 24 additions and 26 deletions

23
Skills/RankSorter.php Normal file
View File

@ -0,0 +1,23 @@
<?php
namespace Moserware\Skills;
/**
* Helper class to sort ranks in non-decreasing order.
*/
class RankSorter
{
/**
* Performs an in-place sort of the items in according to the ranks in non-decreasing order.
*
* @param $items The items to sort according to the order specified by ranks.
* @param $ranks The ranks for each item where 1 is first place.
*/
public static function sort(array &$teams, array &$teamRanks)
{
array_multisort($teamRanks, $teams);
return $teams;
}
}
?>