Skip to content
Browse files

small fix

  • Loading branch information...
1 parent d4b7d79 commit 0860dbde41c64b1822828af110f4318cf08b243d @winebarrel winebarrel committed Apr 22, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 ec2ui/content/ec2ui/eipview.js
View
8 ec2ui/content/ec2ui/eipview.js
@@ -234,6 +234,14 @@ var ec2ui_ElasticIPTreeView = {
unassociated.push(instanceIds[i]);
}
+ unassociated.sort(function(a, b) {
+ a = a.split(":");
+ b = b.split(":");
+ var tag_a = (a[1] || a[0]);
+ var tag_b = (b[1] || b[0]);
+ return (tag_a < tag_b) ? -1 : (tag_a > tag_b) ? 1 : 0;
+ });
+
return unassociated;
},

0 comments on commit 0860dbd

Please sign in to comment.
Something went wrong with that request. Please try again.