0 = AZ higher */ function compareVersions($version1,$version2){ // CVS is bleeding edge, more recent than any _Bnn versions. _B99 is max so treat as _B99 for compare // I'd prefer to use B100 but the crappy code below doesn't actually work... someone should fix this sometime $version1 = str_replace( "_CVS", "_B99", $version1 ); $version2 = str_replace( "_CVS", "_B99", $version2 ); $version1 = preg_replace("[^0-9.]", ".", $version1); $version2 = preg_replace("[^0-9.]", ".", $version2); for ($j=0;$j