griffithlab/civic-v2

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

Opened this issue · 0 comments

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

  • amp-category-select: order by tier (maybe group by tiers using nested menu option)
  • clingen-code-select: order by strength, also some options might be missing
  • acmg-code-select: also appears unordered

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.