griffithlab / civic-v2

CIViC is an open access, open source, community-driven web resource for Clinical Interpretation of Variants in Cancer
https://civicdb.org
MIT License
19 stars 5 forks source link

several enum select form fields (AMP, ACMG, and ClinGen code) require better option sorting #981

Open jmcmichael opened 7 months ago

jmcmichael commented 7 months ago

Several of the enum-select fields require better sorting of their options:

Currently the fields do not perform any of their own sorting, just iterating through the enum object generated from the GQL schema. Since field's options are generated from observables, we can just add a map operator to perform the sorting.