--- a/busui/routeList.php +++ b/busui/routeList.php @@ -66,7 +66,7 @@ $routeDestinations[$row[2]][] = $row; } echo '<div class="noscriptnav"> Go to Destination: '; - foreach($routeDestinations as $destination => $routes) + foreach(ksort($routeDestinations) as $destination => $routes) { echo "<a href=\"#$destination\">$destination</a> "; }