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

Make nutrient lists in alphabetical order according to the language #1982

Open
Tracked by #4457
teolemon opened this issue Oct 22, 2018 · 3 comments
Open
Tracked by #4457

Make nutrient lists in alphabetical order according to the language #1982

teolemon opened this issue Oct 22, 2018 · 3 comments
Labels

Comments

@teolemon
Copy link
Member

image

@teolemon
Copy link
Member Author

Huzaifa Iftikhar [8:46 PM] Possibly not. The order of the list is mapped with the ids of the "other nutrients array" in the code and since the other nutrients is a dynamic view (table layout) we actually cannot change the order of the list with the current implementation. If you have another approach for this which makes it possible to add the other nutrients and change the order the as well then it would be a great help! (edited)

@teolemon teolemon added the editing Issues relating to allowing the user to edit products label Oct 22, 2018
@hunsly
Copy link

hunsly commented Oct 22, 2018

String nutrients[] = getResources().getStringArray(R.array.nutrients_array);

Can this work?

import java.util.Arrays;
[...]

String nutrients[] = getResources().getStringArray(R.array.nutrients_array);
Arrays.sort(nutrients);

@jaindiv26
Copy link
Contributor

@teolemon This issue is already solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants