Pull request #201: Fixed dossier dictionary and dictionary rank sorting
Merge in RED/redaction-service from RankFix to master * commit '289077e5e386e3a0785e2c849ae06bcb01202d5c': Fixed dossier dictionary and dictionary rank sorting
This commit is contained in:
commit
6c375b5b7a
@ -212,7 +212,7 @@ public class DictionaryService {
|
|||||||
dossierDictionaryVersion = dossierRepresentation.getDictionaryVersion();
|
dossierDictionaryVersion = dossierRepresentation.getDictionaryVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Dictionary(copy, DictionaryVersion.builder().dossierTemplateVersion(dossierTemplateRepresentation.getDictionaryVersion()).dossierVersion(dossierDictionaryVersion).build());
|
return new Dictionary(copy.stream().sorted(Comparator.comparingInt(DictionaryModel::getRank).reversed()).collect(Collectors.toList()), DictionaryVersion.builder().dossierTemplateVersion(dossierTemplateRepresentation.getDictionaryVersion()).dossierVersion(dossierDictionaryVersion).build());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user