mirror of
https://github.com/furyfire/trueskill.git
synced 2025-04-19 12:24:28 +00:00
Some minor documentation cleanup (e.g. converted C# comments to PHPDocumentor comments)
This commit is contained in:
@ -2,17 +2,17 @@
|
||||
|
||||
namespace Moserware\Skills;
|
||||
|
||||
/// <summary>
|
||||
/// Helper class to sort ranks in non-decreasing order.
|
||||
/// </summary>
|
||||
/**
|
||||
* Helper class to sort ranks in non-decreasing order.
|
||||
*/
|
||||
class RankSorter
|
||||
{
|
||||
/// <summary>
|
||||
/// Performs an in-place sort of the <paramref name="items"/> in according to the <paramref name="ranks"/> in non-decreasing order.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The types of items to sort.</typeparam>
|
||||
/// <param name="items">The items to sort according to the order specified by <paramref name="ranks"/>.</param>
|
||||
/// <param name="ranks">The ranks for each item where 1 is first place.</param>
|
||||
/**
|
||||
* 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);
|
||||
|
Reference in New Issue
Block a user