"Sort Inventory" isn't a real Magic: The Gathering keyword or ability—it doesn't exist in the comprehensive rules or on any printed card. It sounds like a video game inventory-management function rather than an MTG mechanic.
You may be thinking of a real ability with a similar feel. For card-arranging effects, look at Scry (look at the top N cards, reorder or bottom them), Surveil (look at top N, bin or keep on top), or tutors like Demonic Tutor that search your library. For "organizing" your hand or graveyard, there's no keyword—those zones just have an unordered structure by default.
If you saw "Sort Inventory" in a custom set, a digital client, or a casual playgroup's homebrew, ask them for the specific rules text, since it's not an official term. Happy to explain the real mechanic you actually mean.