fix warning and sorting in dashboad inventories