View Single Post
Old 10-06-2005, 04:00 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,529
sde is on a distinguished road
i don't think mysql has a way to sort results like that, however you can make php do the work with natsort()

PHP Code:
<?
$array 
= array();

$result mysql_query("select configname from configs");

while(
$row mysql_fetch_assoc($result)) {

  
$array[] = $row['configname'];
}

natsort($array);

foreach(
$array as $each) {

  echo 
$each "<br />\n";
}

?>
__________________
Mike
sde is offline   Reply With Quote