Index: trunk/cgi-bin/main.cgi
===================================================================
--- trunk/cgi-bin/main.cgi	(revision 38)
+++ trunk/cgi-bin/main.cgi	(revision 40)
@@ -968,10 +968,10 @@
 # Same ordering as confirmation page
 
-  if ($webvar{alloctype} =~ /^[cdsm]i$/) {
+  if ($webvar{alloctype} =~ /^[scdmw]i$/) {
     my ($base,$tmp) = split //, $webvar{alloctype};	# split into individual chars
 
     # 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'");
+	" and available='y' order by IP");
     $sth->execute;
 
