r3839 sort list of ports
authorAaron Dummer <aaron@dummer.info>
Tue, 15 Jun 2010 22:05:55 +0000 (22:05 +0000)
committerAaron Dummer <aaron@dummer.info>
Tue, 15 Jun 2010 22:05:55 +0000 (22:05 +0000)
popup.php

index c2d2c50..e1df5b2 100644 (file)
--- a/popup.php
+++ b/popup.php
@@ -59,6 +59,7 @@ function findSparePorts ($port_id, $only_racks = array())
                $ret[$rows[$rkey]['id']] = $object['dname'] . ' ' . $rows[$rkey]['name'];
                unset ($rows[$rkey]);
        }
+       natsort($ret);
        return $ret;
 }