move all semver sorting to MySQL

All semver sorting is now done in MySQL. This
eliminates the need for some old semver_sort()
methods which have thus also been removed.