Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generations: fix generation list sorting to ensure numerical order #217

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

NotAShelf
Copy link
Contributor

Quick and dirty fix for #211.

I cannot exactly reproduce this issue on my system, but if I did understand it correctly the issue
The issue with the generations list not being in proper order likely stems from the fact that we extract the generation numbers as strings describe and from_dir.

This tries to address the issue by comparing those lexicographically (did I spell that right?) rather than numerically while listing.

Also ended up adding some extra comments to my code.

@viperML viperML merged commit e691846 into viperML:master Jan 22, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants