Version Sorter
Sort a list of semantic versions in ascending or descending order. Properly handles pre-release versions, build metadata, and edge cases according to semver specification.
Enter semantic versions above to sort them. Supports major.minor.patch format with optional prerelease tags.
FAQ
How are versions compared?
Versions are compared by major, minor, then patch numbers. When these are equal, pre-release versions have lower precedence than normal versions (1.0.0-alpha < 1.0.0).
How are pre-release versions sorted?
Pre-release versions are compared by splitting on dots and comparing each identifier. Numeric identifiers are compared as integers, alphanumeric as strings. Numeric has lower precedence than alphanumeric.
Does build metadata affect sorting?
No, build metadata (the part after +) is ignored when comparing versions according to semver specification. Two versions differing only in build metadata are considered equal.