Available on php
See also:
https://www.php.net/manual/en/class.collator.php
@:phpClassConststaticfinalread onlyALTERNATE_HANDLING:Int
@:phpClassConststaticfinalread onlyCASE_FIRST:Int
@:phpClassConststaticfinalread onlyCASE_LEVEL:Int
@:phpClassConststaticfinalread onlyDEFAULT_STRENGTH:Int
@:phpClassConststaticfinalread onlyDEFAULT_VALUE:Int
@:phpClassConststaticfinalread onlyFRENCH_COLLATION:Int
@:phpClassConststaticfinalread onlyHIRAGANA_QUATERNARY_MODE:Int
@:phpClassConststaticfinalread onlyIDENTICAL:Int
@:phpClassConststaticfinalread onlyLOWER_FIRST:Int
@:phpClassConststaticfinalread onlyNON_IGNORABLE:Int
@:phpClassConststaticfinalread onlyNORMALIZATION_MODE:Int
@:phpClassConststaticfinalread onlyNUMERIC_COLLATION:Int
@:phpClassConststaticfinalread onlyOFF:Int
@:phpClassConststaticfinalread onlyON:Int
@:phpClassConststaticfinalread onlyPRIMARY:Int
@:phpClassConststaticfinalread onlyQUATERNARY:Int
@:phpClassConststaticfinalread onlySECONDARY:Int
@:phpClassConststaticfinalread onlySHIFTED:Int
@:phpClassConststaticfinalread onlySORT_NUMERIC:Int
@:phpClassConststaticfinalread onlySORT_REGULAR:Int
@:phpClassConststaticfinalread onlySORT_STRING:Int
@:phpClassConststaticfinalread onlySTRENGTH:Int
@:phpClassConststaticfinalread onlyTERTIARY:Int
@:phpClassConststaticfinalread onlyUPPER_FIRST:Int
staticcreate(locale:String):Null<Collator>
new(locale:String)
asort(arr:Ref<NativeAssocArray<String>>, ?sort_flag:Int):Bool
compare(str1:String, str2:String):EitherType<Int, Bool>
getAttribute(attr:Int):EitherType<Int, Bool>
getErrorCode():Int
getErrorMessage():String
getLocale(type:Int):EitherType<String, Bool>
getSortKey(str:String):EitherType<String, Bool>
getStrength():EitherType<Int, Bool>
setAttribute(attr:Int, val:Int):Bool
setStrength(strength:Int):Bool
sort(arr:Ref<NativeArray>, ?sort_flag:Int):Bool
sortWithSortKeys(arr:Ref<NativeArray>):Bool