_versions
Functions:
_find_latest_version_or_422(versions)
For PEP 440 versions, this is easy enough for the client to do (using the
packaginglibrary [...]. For non-standard versions, there is no well-defined ordering, and clients will need to decide on what rule is appropriate for their needs. (https://peps.python.org/pep-0700/#why-not-provide-a-latest-version-value)
The versions array is coming from the PyPI API, and its elements are
assumed parsable.
Source code in fractal_server/app/routes/aux/_versions.py
_version_sort_key(version)
Returns a tuple used as (reverse) ordering key for TaskGroups in
get_task_group_list.
The parsable versions are the first in order, sorted according to the
sorting rules of packaging.version.Version.
Next in order we have the non-null non-parsable versions, sorted
alphabetically.