Merge r7709 from branches/nihvivo-rel-1.2-maint
This commit is contained in:
parent
ce73492ad2
commit
cb31463bb3
1 changed files with 24 additions and 2 deletions
|
@ -74,7 +74,18 @@ public class LinksDaoJena extends JenaBaseDao implements LinksDao {
|
|||
Collator collator = Collator.getInstance();
|
||||
int compval = collator.compare(first.getDisplayRank(),second.getDisplayRank());
|
||||
if (compval == 0) {
|
||||
compval = collator.compare(first.getAnchor(),second.getAnchor());
|
||||
String firstAnchor = first.getAnchor();
|
||||
String secondAnchor = second.getAnchor();
|
||||
if (firstAnchor == null) {
|
||||
if (secondAnchor == null) {
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
if (secondAnchor == null) {
|
||||
return -1;
|
||||
}
|
||||
compval = collator.compare(firstAnchor, secondAnchor);
|
||||
}
|
||||
return compval;
|
||||
}
|
||||
|
@ -117,7 +128,18 @@ public class LinksDaoJena extends JenaBaseDao implements LinksDao {
|
|||
Collator collator = Collator.getInstance();
|
||||
int compval = collator.compare(first.getDisplayRank(),second.getDisplayRank());
|
||||
if (compval == 0) {
|
||||
compval = collator.compare(first.getAnchor(),second.getAnchor());
|
||||
String firstAnchor = first.getAnchor();
|
||||
String secondAnchor = second.getAnchor();
|
||||
if (firstAnchor == null) {
|
||||
if (secondAnchor == null) {
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
if (secondAnchor == null) {
|
||||
return -1;
|
||||
}
|
||||
compval = collator.compare(firstAnchor, secondAnchor);
|
||||
}
|
||||
return compval;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue