Publishing Engine Programmer's Guide > The Arbortext Publishing Engine Request Manager > Customizing the Arbortext PE Request Manager > Writing a Custom Queue > Transaction Management Methods > The sort Method
  
The sort Method
This method is called by the Arbortext PE Request Manager after it restarts. As it restarts, it will find the transaction directories of all queued transactions that did not complete before the Arbortext PE Request Manager terminated, and place them on queues by calling each queue’s enqueue method. When all enqueue calls are done, the Arbortext PE Request Manager will call each queue’s sort method to put the transactions in order of priority.
The Queued Transaction Scheduler will not start until after each queue’s sort method has been called.