public static function sort(array $timeSlots) {

        // Initialize a Qucik sort.
        $sorter = new QuickSort($timeSlots, new TimeSlotFunctor());
        $sorter->sort();

        // Return the time slots.
        return $sorter->getValues();
    }
public static function sort(array $timeSlots) {

        // Initialize a Qucik sort.
        $sorter = new QuickSort($timeSlots, new TimeSlotFunctor());
        $sorter->sort();

        // Return the time slots.
        return $sorter->getValues();
    }
public static function sort ( array $ timeSlots ) { // Initialize a Qucik sort. $ sorter = new QuickSort ( $ timeSlots , new TimeSlotFunctor ( ) ) ; $ sorter -> sort ( ) ; // Return the time slots. return $ sorter -> getValues ( ) ; }
Sort time slots.

@param TimeSlot[] $timeSlots The time slots.
@return TimeSlot[] Returns the sorted time slots.
Sort time slots .