Mercurial > hg > batmud > maputils
diff www/info.php @ 1115:3dc58d67b7b4
Sync.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 02 Jul 2011 19:47:28 +0300 |
parents | fdf23fef400e |
children | 3bb8253db932 |
line wrap: on
line diff
--- a/www/info.php Sat Jul 02 18:35:25 2011 +0300 +++ b/www/info.php Sat Jul 02 19:47:28 2011 +0300 @@ -44,6 +44,12 @@ } +function wizardSort($a, $b) +{ + return strcmp($a["name"], $b["name"]); +} + + /* Print table of wizards */ foreach ($locTable as $location) { @@ -70,7 +76,8 @@ $maxRow = 6; foreach ($alphaTable as $alpha => $data) { if (count($data) > 0) { - asort($data); + usort($data, "wizardSort"); + echo "<h3><a name=\"".strtolower($alpha)."\"></a>".$alpha."</h3>\n"; echo "<table class=\"loc\" width=\"95%\">\n"; $n = 0;