private int compare(tags t1, tags t2) { if (t1.start < t2.start) return 1; if (t1.start == t2.start) return 0; return -1; }