public static long localeCompare(string self, string x) { int cmp = String.Compare(self, x, true, Locale.cur().dotnet()); if (cmp < 0) return -1; return cmp == 0 ? 0 : +1; }