Enable sorting of ground items

based on equip priorities, then, for ammo or medikits, on quantities remaining.

Results in more loaded ammo clips stacked on top of less full clips, and
less used medi kits being stacked on top of more used kits.