natsort

It sorts an array using a “natural order” algorithm

Example

<?php
echo “<pre>”;
$lan = array(“PHP”,”JSP”,”ASP”);
natsort($lan);
print_r($lan);
?>

Output

Array
(
[2] => ASP
[1] => JSP
[0] => PHP
)