Sort text by semver, date, etc.