Skip to content

Commit

Permalink
HTML-836 - Drugs should be sorted alphabetically if an explicit order…
Browse files Browse the repository at this point in the history
… is not set. (#297)
  • Loading branch information
mseaton authored Sep 26, 2023
1 parent 28fa7a8 commit c129b9b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,9 @@ protected void ensureConceptAndDrugOptionsAreConsistent(OrderWidgetConfig config
if (!conceptsExplicitlyDefined) {
concepts.sort(Comparator.comparing(option -> option.getLabel().toLowerCase()));
}
if (!drugsExplicitlyDefined) {
drugs.sort(Comparator.comparing(option -> option.getLabel().toLowerCase()));
}
}

protected List<Concept> getConceptsForOptionGroup(ConceptOptionGroup optionGroup) {
Expand Down

0 comments on commit c129b9b

Please sign in to comment.