public static int compareWithCase(String a, String b) {for (int i = 0; i < a.length() && i < b.length(); i++) {int d = a.charAt(i) - b.charAt(i);if (d != 0)return d;}return a.length() - b.length();}
public static int CompareWithCase(string a, string b){for (int i = 0; i < a.Length && i < b.Length; i++){int d = a[i] - b[i];if (d != 0){return d;}}return a.Length - b.Length;}