fixed sort ordering and cout for inventory