public synchronized boolean removeCue(Cue cue) {
        if (mCues.contains(cue)) {
            mCues.remove(cue);
            mCuesToRemove.add(cue);
            mModCount++;
            return true;
        }

        return false;
    }
Sorts cues in ascending time order.
MediaPlayer/src/main/java/net/protyposis/android/mediaplayer/Timeline.java