PHP Code:
<?
$row_array = array();
$key_array = array();
$result = mysql_query("select configname from configs");
while($row = mysql_fetch_assoc($result)) {
// create an array of cofig names so you can
// use the natsort later
$key_array[] = $row['configname'];
// create an array of the rows using the
// config name as the key
$row_array[$row['configname']] = $row;
}
natsort($key_array);
foreach($key_array as $key) {
// now you can access the row
// by using the $key var
$config = $row_array[$key];
}
?>