Fixed dossier dictionary and dictionary rank sorting
This commit is contained in:
parent
9d89cf20c8
commit
94d6fc3e28
@ -210,7 +210,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