started work on queue sorting