Its already possible. Hers how.

Make sure "Autosort inventory" is enabled. Then bring up a retainer. Place all of you inventory on your retainer. Then move everything you want in your inventory from your retainer back into your inventory. The order doesn't matter. Everything will automatically be auto sorted.

All food will appear on 1 page, crafting materials on another etc.

Done. It only takes a couple minutes.