Fix sorting of Python versions.

Review Request #14852 — Created Feb. 24, 2026 and submitted — Latest diff uploaded

Information

virtualenv-multiver
master

Reviewers

To create a sort key, the Python version was being split on periods but
then left as strings. This change fixes it so we sort versions
numerically instead.

This also moves the sorting to happen after we normalize versions, so
that version ranges get handled properly.

Ran virtualenv-multiver test 3.8 3.12 3.9 3.10-3.11 and saw that it did
everything in order.

Commits

Files