mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-22 09:15:33 +03:00
Fix sort, this was reversed
This commit is contained in:
parent
4d5c0f1f5d
commit
b8d7e18371
1 changed files with 2 additions and 2 deletions
|
@ -119,8 +119,8 @@ export function groupContext(items) {
|
|||
// Sort items by checking inReplyToId
|
||||
contexts.forEach((context) => {
|
||||
context.sort((a, b) => {
|
||||
if (a.inReplyToId === b.id) return -1;
|
||||
if (b.inReplyToId === a.id) return 1;
|
||||
if (a.inReplyToId === b.id) return 1;
|
||||
if (b.inReplyToId === a.id) return -1;
|
||||
return 0;
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue