Hi Erel,
I would like to sort below List of strings as per user locale.
For different user locale sort output should be different as per there locale.
"Äbc", "äbc", "Ábc", "ábc", "Abc", "abc", "ABC, etc."
I have found a soluiton for this on stackoverflow website:
-------------------------------------------------------------
List<String> words = Arrays.asList(
"Äbc", "äbc", "Ábc", "ábc", "Abc", "abc", "ABC"
);
Collator coll = Collator.getInstance(locale);
coll.setStrength(Collator.PRIMARY);
Collections.sort(words, coll);
------------------------------------------------
How can I implement this in B4A ?
Thanks,
Attila
I would like to sort below List of strings as per user locale.
For different user locale sort output should be different as per there locale.
"Äbc", "äbc", "Ábc", "ábc", "Abc", "abc", "ABC, etc."
I have found a soluiton for this on stackoverflow website:
-------------------------------------------------------------
List<String> words = Arrays.asList(
"Äbc", "äbc", "Ábc", "ábc", "Abc", "abc", "ABC"
);
Collator coll = Collator.getInstance(locale);
coll.setStrength(Collator.PRIMARY);
Collections.sort(words, coll);
------------------------------------------------
How can I implement this in B4A ?
Thanks,
Attila