cancel
Showing results for 
Search instead for 
Did you mean: 

Loading items into work queue

ArinzeNkwoji1
Level 2
Is it possible to load a collection into work queue and have the queue maintain the sort order of the collection? 
2 REPLIES 2

david.l.morris
Level 15
Hi Arinze! In a way, it does. When you add items to a queue, they are supposed to be retrieved in the order in which they were added (First in First Out). This only applies if all other things are equal (same tags if you use tag filters, same priority, etc.). I feel like I've seen it not do this properly sometimes, so it's worth testing it for yourself just in case. In any case, I would say it is not reliable to expect a queue to maintain the sort order. If it is really important to do so in order to re-construct the same collection later and in the same order, I would add a field to the underlying data and call it Sort Order. Then I'd put 1,2,3,4,5,etc. in it for each row so that I can easily sort it later if I retrieve the data from all those queue items later. Respectfully, Dave

Dave Morris, 3Ci at Southern Company

ArinzeNkwoji1
Level 2
Hey Dave! Good to hear from you :) Yea I thought that was the case, thanks for that.