Collating strings is a complex affair. To describe some cases where gson's collation algorthim might fail are:
- When applications want to sort smaller case letters (like 'a', 'b', 'c') to sort before capital case letters (like 'A', 'B', 'C').
- When application want to sort latin characters in the context of different languages like german or swedish. Refer https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Collator
- When applications want to follow ICU collation standard for unicode characters.
- Databases can used different collation standard.
Refer: collation
Collating strings is a complex affair. To describe some cases where gson's collation algorthim might fail are:
Refer: collation