public static int compare(String s, String s1) {
		if ((s.length() - s1.length()) != 0) {
			return s.length() - s1.length();
		}
		byte b[] = s.getBytes();
		byte b1[] = s1.getBytes();
		for (int i = 0; i < b.length; i++) {
			if ((b[i] - b1[i]) != 0) {
				return b[i] - b1[i];
			}
		}
		return 0;
	}