HPCC-11823 Improve efficiency of sorting archived wuid list

Used to be performing a linear walk of list so far and inserting.
Change to gather and post sort.

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
I haven't seen any. It was added here just in case if bad data is received.