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