Computer Programming

How do you sort a queue?

Answer

Wiki User
01/25/2015

You don't. Queues are a first in, first out structure, specifically used to process incoming data in the same order it arrives. If you want to sort a data sequence then use an array or a list.