1
0
Fork 0

Fix: invert the "natural" order when ordering by id lexicographically

This commit is contained in:
Giambattista Bloisi 2024-02-24 16:54:30 +01:00
parent 3fcafc7ed6
commit c45cae447a
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ public class MergeEntitiesComparator implements Comparator<Oaf> {
// id
if (res == 0) {
if (left instanceof OafEntity && right instanceof OafEntity) {
res = ((OafEntity) left).getId().compareTo(((OafEntity) right).getId());
res = ((OafEntity) right).getId().compareTo(((OafEntity) left).getId());
}
}