I want to sort the list of strings. Some of the
string can have directional unicode at the start and end of the string (like RTL unicode \u202B). I tried to use string compare but its not giving me the correct result. For example:
["A", "B", "C", "\u202BA"]
I want the sort method to sort like
A
\u202BA
B
C
Question: I heard about RuleBasedCollator. What rule i need to add in the RuleBasedCollator to have the desired sorting ? Is there any rule to ignore the list of characters all together ?