Fixed improper sorting of semver in SQL to sort first by non-suffixed version, then suffix type, then normalized version