Javascript-less navigation using anchor tags on long lists
[bus.git] / busui / routeList.php
blob:a/busui/routeList.php -> blob:b/busui/routeList.php
--- a/busui/routeList.php
+++ b/busui/routeList.php
@@ -10,7 +10,7 @@
 			</ul>
                 </div>
 	';
-echo '  <ul data-role="listview">';
+echo '  <ul data-role="listview"  data-inset="true">';
 $url = $APIurl."/json/routes";
 $contents = json_decode(getPage($url));
 debug(print_r($contents,true));
@@ -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>&nbsp;"; 
 		}