The problem statement you have is very much complex for the Get Queue Items.
Still you can try below approach:
Add timestamp as reference of each queue item.
When getting queue items with Get Queue Items use Filter Strategy as StartsWith and enter Reference = Timestamp as per requirement.
Remember Get Queue Items fetches 100 queue items only at a time. If want more than that you will have to loop through it.
This would require more digging around reference to get test different scenarios. Work on that.
Another more reliable and designed for these kind of problems solution is Data Service
Try this option as well if you have liberty to design solution.