static int compare(Integer a, Integer b) { if (a.value < b.value) return -1; if (a.value > b.value) return 1; return 0; }