Content Suggestion Fridge chemicals in alphabetical order

Content Suggestions will be reviewed by Content Team weekly, please allow time as not everything can be reviewed at once.
Status
Not open for further replies.

Boguslaw

Civil Gamers Expert
Mar 27, 2024
9
5
61
What does this suggestion change/add/remove:

Makes chemicals in fridges to be in alphabetical order, instead of first one put in beign on top

Has something similar been suggested before? If so, why is your suggestion different?:

I couldn't find any

Possible Positives of the suggestion (At least 2):

- Clear view of chemicals in fridges for departments
- Not having to sort them by hand
- No more trying to find specific chemical hidden amongst others

Possible Negatives of the suggestion:

-Development time
-Taking up too much servers resources, if ineffective sorting algorithm is implemented

Based on the Positives & Negatives, why should this suggestion be accepted:

Big quality of life change for departments and chemical lovers
 
You can change how it's implemented, though, and a lot of implementations probably wouldn't be an issue. Like storing the chemicals using SQL and then just using ORDER BY to retrieve them in the right order.
thatll work for the first initilization of the server, then absolutely degrade performance and cost for the server. What would have to happen is you would store the chemicals that are in the fridge on the client side, and have the client sort those chemicals each time a fridge is opened. There is ways to guard against that, but its still expensive. Without guards, each open of a fridge would be O(M * Nlog(n)) (given merge sort, any other sorting method will still be slow for strings, google says a good one is triple radix which is still O(d * (n + b)). I wont dive fully into why its intensive and wont go further in cs topics than just what i stated, but sorting strings is SLOW. Searching a string is better.


thumbs down = N its N log N idk why its doing a emoji
 
thatll work for the first initilization of the server, then absolutely degrade performance and cost for the server. What would have to happen is you would store the chemicals that are in the fridge on the client side, and have the client sort those chemicals each time a fridge is opened. There is ways to guard against that, but its still expensive. Without guards, each open of a fridge would be O(M * Nlog(n)) (given merge sort, any other sorting method will still be slow for strings, google says a good one is triple radix which is still O(d * (n + b)). I wont dive fully into why its intensive and wont go further in cs topics than just what i stated, but sorting strings is SLOW. Searching a string is better.


thumbs down = N its N log N idk why its doing a emoji
There are absolutely ways to improve it though, especially since you already know the full list of possible strings upon initialisation. The most basic thing I can think of is just giving every chemical an integer ID, in order of the alphabetical strings, and then just reassign/update that integer every time the list of chems updates, so you only ever need to sort strings once upon restart most days, rather than every time a display is populated, as you can then just order over basic integers for those.
 
Suggestion Denied



Hi @Boguslaw ,

Thanks for taking the time to make a server suggestion.
The Content Team has chosen to deny your suggestion due to the following reasons.

The Reason we are denying your suggestion is that not everything needs to be in alphabetical order as we have a lot chems and putting them in order is tedious and time consuming. I can completely understand it can be had to find a chem your looking for in which why we added the search option in the fridges.

Your suggestion will now be locked and marked as denied.​
 
Status
Not open for further replies.