add support for sorting the options