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

Order list of currencies #2

Merged
merged 4 commits into from
Oct 6, 2022
Merged

Conversation

t-8ch
Copy link
Contributor

@t-8ch t-8ch commented Oct 6, 2022

This PR orders the currencies alphabetically.

The first preparatory commits restructure the code from separate lists for the different facets of a specie (name, longname, flag, symol) to a list of a single Specie class.

Then this list is sorted alphabetically.

The advantage of this aproach over some automatic sorting is that makes it very easy to manually tweak the order to keep certain species on top while also making it easy to automatically sort the rest of the list with an IDE.

Fixes #1

This will keep the default the same even if EUR is not the first one in
the list anymore.
This makes it easier to reorder the species list.
It will make it easier for users to find their needed specie from the
list.

Fixes billthefarmer#1
@t-8ch t-8ch changed the title Order of currencies Order list of currencies Oct 6, 2022
@billthefarmer
Copy link
Owner

OK, I have merged this into a branch. Thank you.

@billthefarmer billthefarmer merged commit 950ee92 into billthefarmer:main Oct 6, 2022
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.

Sort the list of currencies in the currency chooser
2 participants