mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-12 09:26:05 +00:00
Reorder x-wiki bundles to be after local notifications
Bug: T127422 Change-Id: I81ae2e13612168a598c32f130a625eadc0325c8f
This commit is contained in:
parent
ba27d4b8f6
commit
2ac0d2d761
|
@ -71,6 +71,10 @@
|
|||
return -1; // Unread items are always above read items
|
||||
} else if ( a.isRead() && !b.isRead() ) {
|
||||
return 1;
|
||||
} else if ( !a.isForeign() && b.isForeign() ) {
|
||||
return -1;
|
||||
} else if ( a.isForeign() && !b.isForeign() ) {
|
||||
return 1;
|
||||
} else {
|
||||
// Reverse sorting
|
||||
diff = Number( b.getTimestamp() ) - Number( a.getTimestamp() );
|
||||
|
|
Loading…
Reference in a new issue