orderedList

Returns a list containing the elements in the queue in the order defined by its queue discipline. The items are not removed from the queue. The random queue discipline returns a permuted version of the list. That is, in a random order.