public static int compareSkylinePosition(int[] attributes1, int[] attributes2) {
        boolean inf = true, sup = true;
        int ret = 0;
        for (int i = 0; i < attributes1.length; i++) {
            if (attributes1[i] < attributes2[i]) {
                sup = false;
            } else if (attributes1[i] > attributes2[i]) {
                inf = false;
            }
        }
        if ((sup && inf) || (!sup && !inf))
            ret = 0;
        else if (sup)
            ret = 1;
        else if (inf)
            ret = -1;
        return ret;
    }