Organizes inventory after sorting