public ArrayList<Interval> sortIntervals(ArrayList<Interval> intervals) {
		ArrayList<Interval> out = new ArrayList<Interval>();
		for (int i = 0; i < intervals.size(); i++) {
			insertIntervals(intervals.get(i), out);
		}
		return out;
	}