add sorting for the inventory dropdown list

This patch provides sorted inventory dropdown menu's.