This repository has been archived by the owner on Jun 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 362
Organize languages in dropdown by alphabet order #57
Labels
Comments
@haritsE yes, still a bug! Please do take it on. I'd suggest opening a PR early so it's marked on this issue as in progress. |
Example of sorting alphabetically on objects within an array: export function alphabetically(property) {
return (a, b) => {
const textA = a[property].toUpperCase();
const textB = b[property].toUpperCase();
if (textA < textB) {
return -1;
}
if (textA > textB) {
return 1;
}
return 0;
};
} usage: [{name: "English"}, {name: "Arabic"}].sort(alphabetically('name') |
Awesome, I'll try to have a PR ready by this weekend 👍 |
I guess this issue is fixed? |
@kriwil yep |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
No description provided.
The text was updated successfully, but these errors were encountered: