selected_key array not sorted

While testing I encountered a the variant map saying there wasn't a matching combo for a given variant combination that indeed existed.  Adding a sort on the selected_key array to align with the creation of the variant_map json object in the helper fixed the issue.