Index: branches/stable/cgi-bin/IPDB.pm
===================================================================
--- branches/stable/cgi-bin/IPDB.pm	(revision 361)
+++ branches/stable/cgi-bin/IPDB.pm	(revision 362)
@@ -569,5 +569,5 @@
 	  # contained which have nevertheless been allocated from a container block)
 	  # We want to make certain that the freeblocks are properly "labelled"
-	  $sth = $dbh->prepare("select cidr from freeblocks where cidr <<= '$container'");
+	  $sth = $dbh->prepare("select cidr from freeblocks where cidr <<= '$container' order by maskbits desc");
 	} else {
 	  # Standard deallocation.
