Allow id to be sorted numerically rather than alphabetically
authorAndy Allan <gravitystorm@gmail.com>
Wed, 13 Oct 2010 14:20:34 +0000 (14:20 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Wed, 13 Oct 2010 14:20:34 +0000 (14:20 +0000)
net/systemeD/halcyon/connection/XMLConnection.as

index 4044ad5..cbfc644 100644 (file)
@@ -331,7 +331,7 @@ package net.systemeD.halcyon.connection {
             var files:XML = new XML(URLLoader(event.target).data);
             for each(var traceData:XML in files.gpx_file) {
               var t:Object = {};
-              t.id = traceData.@id;
+              t.id = Number(traceData.@id);
               t.name = traceData.@name;
               t.description = traceData.description;
               var tags:Array = [];