Fix issue where single quotes would break taxonomies/get_children response

Fixes #2413
Ensure option values in Variant#options_text are sorted in a predictable order

Fixes #2432