Partial reordering of queues