function compare(a, b) {
        if (a > b) {
            return 1;
        }
        if (a < b) {