Item sorting from oldest to newest

I'm making an inventory system for my Survival Horror game and I wanted to make the items in the inventory to be sorted from oldest to newest acquired.
I'm using FenixFyreX's Manual Item Sorting if it helps in any way.
Can anyone help?
I believe you would have to add in an item time tracking. By default there is no option to sort by time acquired.
After doing so you could use Hime's Inventory sorting to reorganize them by the data you created.
I can only see this being done by adding a game time parameter to the items.
Someone better than me could probably do it.
This script was from this thread- (sort newest to oldest)
https://forums.rpgmakerweb.com/index.php?threads/skill-item-list-based-on-learn-obtain-order.19050/

Allows you to show the skill and item list based on the order that you learned the skills (obtained items) instead of the default which uses the database ID to determine sort order.

I wonder if this can be edited to do the opposite.

Code:
class Game_Actor < Game_Battler
  def skills
    (@skills | added_skills).collect {|id| $data_skills[id] }
  end
end
class Game_Party < Game_Unit
  def items
    @items.keys.collect {|id| $data_items[id] }
  end
  def weapons
    @weapons.keys.collect {|id| $data_weapons[id] }
  end
  def armors
    @armors.keys.collect {|id| $data_armors[id] }
  end
end
edited to do the opposite.
You would just encompass the statement with brackets and then put .reverse!
Ruby:
(@items.keys.collect {|id| $data_items[id] }).reverse!
This is from Hime's Inventory sorting script
Neat!

Potion will be the first for both test. Original script is based on the order obtained.

vanilla script
-
1. Potion
2. Hi-Potion
3. Full Potion

.reverse script
-
3. Full Potion
2. Hi-Potion
1. Potion

Note: Order doesn't update for duplicate items that you already have in your inventory.

Works like a charm! I appreciate your input.

Spoiler: .reverse order
Ruby:
class Game_Actor < Game_Battler
  def skills
    (@skills | added_skills).collect {|id| $data_skills[id] }
  end
end
class Game_Party < Game_Unit
  def items
    @items.keys.collect {|id| $data_items[id] }.reverse!
  end
  def weapons
    @weapons.keys.collect {|id| $data_weapons[id] }
  end
  def armors
    @armors.keys.collect {|id| $data_armors[id] }
  end
end

Edit: found Hime's Inventory Sorting script that you're referring to

Original thread: https://forums.rpgmakerweb.com/threads/item-sorting-from-oldest-to-newest.130503/