Sort areas by name
[ais.git] / bin / area.py
index fc5324c9ec3801d6cc46095dcef77e3b9b35e1e1..23a7cc225030e9ce5338455fd6d75465d4a34235 100644 (file)
@@ -127,6 +127,8 @@ def list_areas():
         if not filename.endswith(u'.kml'):
             continue # ignore non-kml files
         results.append((filename[:-4], AREA_DIR+filename))
+    # sort by name
+    results.sort(cmp=lambda a1,a2: cmp(a1[0], a2[0]))
     return results
     
 if __name__ == '__main__':