I have an ArrayList containng Objects which contain three values, now I'd like to sort them by these values:
List<AvailablePeriod> periodList = new ArrayList<AvailablePeriod>
And an AvailablePeriod object contains:
DateTime start
DateTime end
int id
I'd like to have the objects in the list sorted first by start, than end and last by id.
Can't get the sorting figured out..