@Override
        public int compare(Cue lhs, Cue rhs) {
            if (lhs.getTime() == rhs.getTime()) {
                return 0;
            }
            else if (lhs.getTime() < rhs.getTime()) {
                return -1;
            } else {
                return 1;
            }
        }
Sorts cues in ascending time order.
MediaPlayer/src/main/java/net/protyposis/android/mediaplayer/Timeline.java