Sort items/skills script?

One thing that I have noticed is that the game has no sort items feature and the items are displayed according to their index. This makes it difficult to find certain items during battle. Sometimes I can take upwards of an entire minute to find an item I need.

I found out that it was by index and not by when it was added to inventory when I bought a bunch of Warm Trinkets before entering an ice cave when I had 0 previously and those Warm Trinkets were inserted somewhere in the middle.

The same issue can be said about skills but it is not as bad being that skills are actor specific and there are less per actor than your entire inventory. But it still would be great to have them sorted so that Massive Fire, Massive Ice, Massive Thunder, Massive Earth, etc is all together.

The PS1 version you could sort by name, attack, general, etc. There is no sort in VXAce

I do not care if the script adds a 'sort' button or it sorts it automatically but I prefer the latter.

Is there anything like this out there?
If it were to sort automatically, on what criteria would that be?
To keep it simple, by name for now
Ruby:
class Window_ItemList < Window_Selectable
  def make_item_list
    @data = $game_party.all_items.select {|item| include?(item) }
    @data.push(nil) if include?(nil)
    @data.sort! { |a, b| a.name <=> b.name }
  end
end

class Window_SkillList < Window_Selectable
  def make_item_list
    @data = @actor ? @actor.skills.select {|skill| include?(skill) } : []
    @data.push(nil) if include?(nil)
    @data.sort! { |a, b| a.name <=> b.name }
  end
end
Is there anything like this out there?
** Inventory Sorting
Author: Hime
** Inventory Sorting
Author: Hime
Where? Google is not bringing it up

Adding quotes and stuff still not bringing it up. Google acts like it does not exist.
Perhaps it was permanently taken down?
Ruby:
class Window_ItemList < Window_Selectable
  def make_item_list
    @data = $game_party.all_items.select {|item| include?(item) }
    @data.push(nil) if include?(nil)
    @data.sort! { |a, b| a.name <=> b.name }
  end
end

class Window_SkillList < Window_Selectable
  def make_item_list
    @data = @actor ? @actor.skills.select {|skill| include?(skill) } : []
    @data.push(nil) if include?(nil)
    @data.sort! { |a, b| a.name <=> b.name }
  end
end
@Trihan

This script does not work. Nothing is sorted. It is still out of order.
@Trihan

This script does not work. Nothing is sorted. It is still out of order.
Then you must have put the script in the wrong location or changed something in it, because it works on my end. Where did you place it?
Below materials and above main like pretty much every script tells you to put it
Below materials and above main like pretty much every script tells you to put it
And you're not using any other script that modifies how the item/skill list data is handled? If this is the last thing you have in the script section that deals with those methods, there's literally no way for it to be in any order but alphabetical.

This is your last chance to quit with the sour attitude and condescending sarcasm before I stop trying to help you entirely, btw.
Yes, this script is at the very bottom and I do not have any other scripts that modify such things other than Yalfly's Adjust Limits and all that does is allow you to have 999 of items instead of 99.

and that is three scripts above yours. but items are not sorted.

Edit: Only checked the menu, have not looked in battle.
Yes, this script is at the very bottom and I do not have any other scripts that modify such things other than Yalfly's Adjust Limits and all that does is allow you to have 999 of items instead of 99.

and that is three scripts above yours. but items are not sorted.

Edit: Only checked the menu, have not looked in battle.
I'm genuinely mystified as to how you could possibly have items in any other order besides alphabetical with this script. Can you take a screenshot for me and send me a zipped copy of your project?
Screenshot of item list. As you can see, everything is out of order.


As for the project, that is easier said than done. According to my test play save file, there is 70 hours of content already in the game and my project folder is over 2 GB in size, that will make it difficult to upload.

Also there is a lot of NSFW content in it too.
Screenshot of item list. As you can see, everything is out of order.


As for the project, that is easier said than done. According to my test play save file, there is 70 hours of content already in the game and my project folder is over 2 GB in size, that will make it difficult to upload.

Also there is a lot of NSFW content in it too.
I don't really care about the NSFW content, I dev for a commercial hentai game. 😛

Just the scripts data file should be sufficient though.
For the sake of testing, you just need to upload the data folder.
No need for the entire project.
And where should I upload the zip file?
And where should I upload the zip file?
Google Drive?
Here?
@Trihan

Sorry for the late reply. Real life stuff

Original thread: https://forums.rpgmakerweb.com/threads/sort-items-skills-script.159373/