Index: /trunk/cgi-bin/main.cgi
===================================================================
--- /trunk/cgi-bin/main.cgi	(revision 41)
+++ /trunk/cgi-bin/main.cgi	(revision 42)
@@ -973,5 +973,5 @@
     # We'll just have to put up with the oddities caused by SQL (un)sort order
     $sth = $ip_dbh->prepare("select * from poolips where pool='$webvar{alloc_from}'".
-	" and available='y' order by IP");
+	" and available='y' order by ip");
     $sth->execute;
 
@@ -979,5 +979,6 @@
     my $cidr = $data[1];
 
-    $sth = $ip_dbh->prepare("update poolips set custid='$webvar{custid}',available='n'".
+    $sth = $ip_dbh->prepare("update poolips set custid='$webvar{custid}',city='$webvar{city}'".
+	" available='n',description='$webvar{desc}'".
 	" where ip='$cidr'");
     $sth->execute;
