What\'s the right way, to handle versioning indicators like 2.4 or 2.4.0.9 etc. to get the ability of sorting versions.
2.4
2.4.0.9
PHP says, that
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 )