If you had a backpack with 20 vials in it and then you took them all out and put them in another container they would end up in the same order.
They get reversed when pulled to your inventory and then inverted again when put in another container.
Even if you used the dump command to directly transfer them from one container to another you would indeed reverse the order, but as soon as you add any new vials to that container they will go on top and thus place themselves at the top of the stack. So the dump solution only works if you never add any new consumables post dumping.
I guess if you had 2 backpacks you could put all your vials in one of them, then dump them into the second backpack, then put any new ones in the original backpack and once the vials were all gone from the second backpack you could dump again. This is ridiculous micromanagement in my opinion, would be a lot nicer if all consumables of the same kind just sorted themselves automatically by life expectancy.
That's why as far as vials are concerned, I turn them into pills. Granted, I know the same can't be said for other consumables (gyvels, unpreserved herbs, etc), but it's a start.
Syntax: stow [container | none]
stow herbs backpack
stow weapons none
stow 'magenta leaves'
stow all.leaves
You can decide how and where to put specific items with this command,
essentially making it easier to keep track of which items go into which
containers. Keep in mind, stow will find the first container that
matches your agenda. Having two backpacks and stowing items in both will
only result in one of them being stowed, if they're the same exact item.
Using different containers with different vnums for storing different
types of items (such as a knapsack, or leather backpack, and travel bags)
will make stow work infinitely better.
SEE ALSO: HELP PUT
The one that evaporates first is on top, and thus the first one you'll quaff. Followed by the second to evaporate, and thus the second you'd quaff. Not just the order it appears in the sack.
Also @Fool_Hardy like I said your solution works only until you collect more consumables before using all those others ones up. Once you add a fresh vial to the bag it will go on top and no amount of dumping will create the optimal order.
@Erelei The stow help file is a little vague, I am assuming you would only have to type "stow herbs backpack" once and then anytime you "stow herb" it is the same as "put herb backpack". This only saves a few keystrokes and anyone using an alias would not benefit from this. I also don't understand why anyone would stow weapon none... Can you elaborate on why this command would be useful? Also what are your thoughts on perishables automatically being in order of age from oldest to newest?
You can stow all.herbs and it'll stow every single 'herb' that you currently have in whichever pack you set it to stow. You can stow all.weapons, etc, and put all your weapons in whatever pack you set to stow.
You're right - this can be easily done with an alias, but I added this command when a player asked me to. I can't remember who, to be honest, but it's somewhere on the forum.