How can I alter the order of the tabs in Item menu?

Hello, I've been working around the Item menu and I want to alter the order of the tabs. (I have YEP_ItemCore installed)

When you enter the Items menu in my game (in Spanish) it shows up this:


As you see, the menu is:
Objetos
Arma
Armadura
Objeto clave

What if I want to change Objetos to Objeto clave?

- Diego
I don't know if Yanfly's Core will affect this, but a way to change the order manually is open the rpg_windows.js file from the js folder of your game and go to Window_ItemCategory.prototype.makeCommandList.

rpg_windows.js Window_ItemCategory.png

And change the order. So for example if you want to switch the order of Objetos and Objetos claves write it like this:

Code:
Window_ItemCategory.prototype.makeCommandList = function() {
    this.addCommand(TextManager.keyItem, 'keyItem');
    this.addCommand(TextManager.weapon,  'weapon');
    this.addCommand(TextManager.armor,   'armor');
    this.addCommand(TextManager.item,    'item');
};
Yeah, it works!!! You are the best, thank you!!!

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-alter-the-order-of-the-tabs-in-item-menu.110022/