In interval scheduling, the greedy solution which maximizes the schedule that contains the largest number of "compliant intervals" involves initially sorting the list of intervals in ascending order by the end-times/point of each interval.
What confuses me, is if two or more intervals have the same ending time.
When performing the initial sort, should one base the sort of the sub-range of intervals on start time?
and if so should it be in ascending or descending order?