summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/leaflet-soton.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/leaflet-soton.js b/src/leaflet-soton.js
index 2d96f97..0eb51be 100644
--- a/src/leaflet-soton.js
+++ b/src/leaflet-soton.js
@@ -1265,6 +1265,13 @@ SELECT * WHERE {\
for (var level in rooms) {
var levelRooms = rooms[level];
+ levelRooms.sort(function(a, b) {
+ if (a > b) {
+ return 1;
+ }
+ return -1;
+ });
+
levelRooms.forEach(function(uri) {
var room = LS.getFeatureByURI(uri);