urbanairship-core/src/main/java/com/urbanairship/automation/AutomationEngine.java
@WorkerThread
    private void sortSchedulesByPriority(List<ScheduleEntry> entries) {
        // Collections.singletonList and Collections.emptyList will throw an UnsupportedOperationException
        // if you try to sort the entries. Make sure we have more than 1 element (ArrayList) before sorting.
        if (entries.size() > 1) {
            Collections.sort(entries, SCHEDULE_PRIORITY_COMPARATOR);
        }
    }
/**
     * Sorts a list of schedule entries by priority.
     *
     * @param entries The schedule entries.
     */
Sorts a list of schedule entries by priority.
@param entries The schedule entries.
Sorts a list of schedule entries by priority . @param entries The schedule entries .
@WorkerThread
    private void sortSchedulesByPriority(List<ScheduleEntry> entries) {
        if (entries.size() > 1) {
            Collections.sort(entries, SCHEDULE_PRIORITY_COMPARATOR);
        }
    }
@ WorkerThread private void sortSchedulesByPriority ( List < ScheduleEntry > entries ) { if ( entries . size ( ) > 1 ) { Collections . sort ( entries , SCHEDULE_PRIORITY_COMPARATOR ) ; } }
Sorts a list of schedule entries by priority.
Sorts a list of schedule entries by priority .
// Collections.singletonList and Collections.emptyList will throw an UnsupportedOperationException // if you try to sort the entries. Make sure we have more than 1 element (ArrayList) before sorting.