Fix sporadic postgres failure by ordering results