have enums sort by the order they're in

(now that they're stored as a list not a dict)
previous behavior was to sort by the text that shows up
Merge pull request #1578 from dimagi/sort-mapping

have enums sort by the order they're in