I am trying sort my array alphabetically.
myArray.sort(function(a, b){
return a.title.localeCompare(b.title ,'tr');
})
myArray includes turkish characters like 'ç,ş,ü,ö,ı'. My code works correctly on ios but it doesn't work the way i want it on android. It sort alphabatically but words starting with turkish characters are at the bottom of list.
In recent versions of React Native, you can enable Intl support in your Android app by changing the value of jscFlavor
in app/build.gradle
to org.webkit:android-jsc-intl:+
The location to change the value in the gradle file
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With