fix sorting

This commit is contained in:
Grahame Grieve 2023-08-11 16:29:44 +10:00
parent ec31868486
commit 369d01646e
1 changed files with 5 additions and 1 deletions

View File

@ -124,7 +124,11 @@ public class TxTesterSorters {
public int compare(ValueSetExpansionParameterComponent o1, ValueSetExpansionParameterComponent o2) {
Collections.sort(o1.getExtension(), new ExtensionSorter());
Collections.sort(o2.getExtension(), new ExtensionSorter());
return o1.getName().compareTo(o2.getName());
int res = o1.getName().compareTo(o2.getName());
if (res == 0) {
res = o1.getValue().primitiveValue().compareTo(o2.getValue().primitiveValue());
}
return res;
}
}