Add ordering so that the queue is ordered in the correct way
Merge pull request #4 from mvk13ogb/queues_ordering

Add ordering so that the queue is ordered in the correct way