Index: /home/klee/eclipse/typo3_4.2/typo3/mod/tools/em/class.em_xmlhandler.php =================================================================== --- /home/klee/eclipse/typo3_4.2/typo3/mod/tools/em/class.em_xmlhandler.php (revision 3591) +++ /home/klee/eclipse/typo3_4.2/typo3/mod/tools/em/class.em_xmlhandler.php (working copy) @@ -98,7 +98,17 @@ $forder = 'category'; break; } - $order = $forder.', title'; + $order = $forder.', title, ' + // gets the x from a version number x.y.z as a number + .'CAST(SUBSTRING_INDEX(version, \'.\', 1) AS UNSIGNED), ' + // gets the y from a version number x.y.z as a number + .'CAST(SUBSTRING_INDEX(' + // gets the x.y from a version number x.y.z + .'SUBSTRING_INDEX(version, \'.\', 2)' + .', \'.\', -1) AS UNSIGNED), ' + // gets the z from a version number x.y.z as a number + .'CAST(SUBSTRING_INDEX(version, \'.\', -1) AS UNSIGNED)'; + if (!$allVer) { if ($this->useUnchecked) { $where .= ' AND lastversion>0';