jpeg wrote:I'm a bit confused because you mention both pickup and inventory, so I'm not entirely sure which of the two you mean.
The inventory is generally sorted (within a category) by the slot letter. Items on the floor actually aren't sorted at all, but simply output in the order they happen to lie in the stash. Sorting the latter by type (even roughly by base type name) would be an improvement indeed. If it's not already on the wiki, you might want to add that.
Does that answer your question, or did you mean something else?
I think so.
Basically, I'm trying to find out why certain ammo items get assigned inventory slots in a seemingly complely random order.
I took all my various unordered bullets, needles and darts, dropped them all, then picked them up, all bullets first, then all needles, then all darts, but in my inventory (bottom right of screen, sorted by letter), the items were still completely jumbled: a square of darts, two squares of bullets, a square of needles, more darts and needles and then bullets. Simply didn't make sense to me; felt like a hash was being used instead of a list.