Project Zomboid

Project Zomboid

Quick Sort Build 41
30 Comments
Nisverah 17 Jul @ 8:03pm 
@Robob27, I really love this mod to the point I created a modified version for myself and a couple friends that sorts items into nearby containers based on their category, prioritizing proximity.
Can I have your permission to upload to the workshop publicly?
To be clear, it doesn't include your functionality of sorting a single item/stack (unless it's the only item of that category), and I'd recommend this mod to go with it and give credit in the description.
GFreenD 27 Mar @ 9:13am 
please make it 42 version
Zitronen 12 Mar @ 9:54am 
Doesn't seem to be working for me as of 03/12/2025
thog 14 Jun, 2024 @ 12:54pm 
Not working anymore.
space is cool 31 Aug, 2023 @ 1:12am 
does this happen to work for tetris inventory, to be able to sort items inside your own bags
JustCallMeJon 18 Aug, 2023 @ 7:08pm 
Hello! This mod works amazingly for sorting a lot of stuff into crates. Quick question. Is there a way to get the ability to sort multiple selected items at once? That is the only thing that is bothering me, as I'm having to manually sort a lot of books into storage to try to find a single magazine I'm missing.
Robob27  [author] 29 May, 2023 @ 11:11am 
It was multiplayer compatible when it was initially published at least!
jacrispy360 29 May, 2023 @ 10:07am 
I have been using it and it's great! Godsend even. Is it multiplayer compatible? I guess I'm about to find out lol.
Robob27  [author] 29 May, 2023 @ 9:12am 
Hey y'all sorry been a while since I've had time to look at this mod. If there's still people trying to use it I can try to get an update out at some point
Legendanny 29 May, 2023 @ 3:11am 
Seems like it has problems with Organized trait that increases storage over the normal value. At least the Quick Sort will not put stuff into container, that e.g. have 51 of 65 storage used, while the normal value would be 50 (50 * 30% = 65 storage). When i remove some stuff and it stays below 50, it works again.
Ith 29 Apr, 2023 @ 3:26am 
Looks like this does not work anymore. Can someone confirm they got it working in 2023? @Robob27 would you be willing to take a look?
Camping_Zone 19 Feb, 2023 @ 4:55pm 
i cant see the button either
[MOSSAD] Ananas 5 Jan, 2023 @ 3:09am 
is there a possibility that any mod conflicts could prohibit the quick sort button to not appear?
I cant see the button
Polarbog 3 Aug, 2022 @ 1:17pm 
@hugo9cf thank you so much! It worked like a charm
Hugo Qwerty 15 Jul, 2022 @ 12:34pm 
Hi Polarbog, I did - but then I removed the mod and lost all the changes. I've just added it again to check, I think if you remove line 215 of Steam\steamapps\workshop\content\108600\2588721141\mods\RPQuickSortB41\media\lua\client\RPISQuickSort.lua (the line starts with "ISTimedActionQueue.add "). I think that will remove the walk to the container.

Lines 88 and 89 can be edited to increase the teleport range.

If you run with Organized, change line 159 to "local capacity = itemContainer:getCapacity() * 1.3;" - otherwise it will stop transferring at normal capacity.
Polarbog 15 Jul, 2022 @ 12:15pm 
@hugo9cf how did you manage to remove the walking part? That would be perfect for me
Kenobus 26 Jun, 2022 @ 1:49pm 
Is there a way to just select a bunch of items and queue them to be sorted at once instead of adding every item one by one?
(OmO) 15 May, 2022 @ 10:06pm 
Love it ! Thank you for making it!!!
turg 10 Mar, 2022 @ 7:45am 
BTW great idea though..........
turg 10 Mar, 2022 @ 7:45am 
don't know how or why but ALL of my bundled items, soap,smokes,coffee etc disappeared?????????????
famwater 10 Feb, 2022 @ 8:41am 
This is a great mod but I have a small problem. It doesn't work for "freezer"... (It's okay with "fridge")
Retrific 18 Jan, 2022 @ 6:29am 
getting errors
Robob27  [author] 9 Jan, 2022 @ 10:38am 
Hey hugo9cf, glad you like it! I'll try to get the Organised thing fixed up soon.
Hugo Qwerty 8 Jan, 2022 @ 2:11am 
One small issue... this doesn't take into account the Organised trait, so a crate with more than 50 units won't accept more stuff even though they have 65 capacity.
Hugo Qwerty 7 Jan, 2022 @ 5:04pm 
This looks amazing, and so much less weighty and complex compared to other sorting mods. I've added a custom modification to remove the walk to container code (1 line) and it's now 100% to my liking. :D
Yonan 20 Oct, 2021 @ 3:33am 
This would fix the most boring chore in the game, awesome.
Robob27  [author] 29 Aug, 2021 @ 5:44pm 
So I haven't tested it myself yet, but I'm wondering if this has already been fixed with updates to the AdjacentFreeTileFinder class.

The mod uses this class to find the adjacent square to move to, and I see this code in the class now:

-- if there is a wall between the two tiles, not adjacent.
if not AdjacentFreeTileFinder.privTrySquareForWalls(src, test) then
return false;
end

If someone still has this happen, please let me know!
Robob27  [author] 29 Aug, 2021 @ 5:05pm 
@Tchernobill hey thanks! That looks like it'd be pretty easy to implement. I'll take a look now since I'm in the modding mood :)
Tchernobill 29 Aug, 2021 @ 4:56pm 
for the wall management, the following code from ISInventoryPage.lua may help

-- stop grabbing thru walls...
local currentSq = playerObj:getCurrentSquare()
if gs ~= currentSq and currentSq and currentSq:isBlockedTo(gs) then
gs = nil
end
Robob27  [author] 29 Aug, 2021 @ 4:01pm 
If you are playing builds older than 41, try this version instead if this one gives you trouble https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2163270729