It seems to loot them in order, even though the first ones are closer to the exit. Can't you try make it detect where the next waypoint is and make it loot the one that's furthest away.
It's not a big deal but it would save me 1 second or so, it just makes it slightly faster.
I am using the Smart Looter function.