added ability to sort queue items