简体   繁体   中英

sort a list of persian Strings for dart and flutter

i want to sort a list of persian Strings for dart and flutter. i alerady use list.(a.toLowerCase()).compareTo(b.toLowerCase())); but it does not work for persian.

Dart doesn't have this built-in to the VM, or in the Intl package, and the collation tables are quite large. So unfortunately I think your only approach right now is to hook up to the native operating system capabilities. Or if you only need a single language you could probably manage to import data from ICU/CLDR for that one and it wouldn't be too expensive.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM