forked from D-Net/dnet-hadoop
Fix: invert the "natural" order when ordering by id lexicographically
This commit is contained in:
parent
3fcafc7ed6
commit
c45cae447a
|
@ -96,7 +96,7 @@ public class MergeEntitiesComparator implements Comparator<Oaf> {
|
||||||
// id
|
// id
|
||||||
if (res == 0) {
|
if (res == 0) {
|
||||||
if (left instanceof OafEntity && right instanceof OafEntity) {
|
if (left instanceof OafEntity && right instanceof OafEntity) {
|
||||||
res = ((OafEntity) left).getId().compareTo(((OafEntity) right).getId());
|
res = ((OafEntity) right).getId().compareTo(((OafEntity) left).getId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue