How to sort versioning info
PHP has a version_compare function. Use usort to sort it. Like following. :)
$a = array('2.4','2.3.4','2.4.0.9');
usort($a, 'version_compare');
Or, just use natsort:
$array = array('2.4','2.16.6','2.3.4','2.4.0.9');
natsort($array);
print_r($array);
#Array ( [2] => 2.3.4 [0] => 2.4 [3] => 2.4.0.9 [1] => 2.16.6 )