Please consider improving the visual sorting algorithm to detect numbers. Right now python3_10 is being sorted before older versions:
[ebuild R ] dev-python/pyparsing-2.4.7-r1::gentoo USE="-examples" PYTHON_TARGETS="pypy3 python3_10 python3_7 python3_8 python3_9" 0 KiB
Actually, radhermit came up with a better idea in pkgcore: to sort based on order in profiles/desc.
The bug has been referenced in the following commit(s):
Author: Michał Górny <email@example.com>
AuthorDate: 2021-08-07 15:58:02 +0000
Commit: Michał Górny <firstname.lastname@example.org>
CommitDate: 2021-08-07 17:17:16 +0000
emerge: Sort USE flags in output using combined alnum sort
Sort USE flags in output by a combined sort that treats sequences
of digits as numbers and sorts them numerically rather than lexically.
As a result, python3_10 now sorts after python3_9.
Ideally, we'd just respect the order from profiles/desc but this should
work as an intermediate solution until we figure out how to implement
Signed-off-by: Michał Górny <email@example.com>
lib/_emerge/resolver/output_helpers.py | 21 +++++++++++++++++++--
1 file changed, 19 insertions(+), 2 deletions(-)