mirror of
https://git.pleroma.social/sjw/pleroma-fe.git
synced 2024-12-23 19:25:15 +01:00
Merge branch 'hotifx-convos' into 'develop'
Fix ordering in convos See merge request pleroma/pleroma-fe!477
This commit is contained in:
commit
8197c77f75
@ -7,13 +7,13 @@ const sortById = (a, b) => {
|
||||
const isSeqA = !Number.isNaN(seqA)
|
||||
const isSeqB = !Number.isNaN(seqB)
|
||||
if (isSeqA && isSeqB) {
|
||||
return seqA > seqB ? -1 : 1
|
||||
return seqA < seqB ? -1 : 1
|
||||
} else if (isSeqA && !isSeqB) {
|
||||
return 1
|
||||
} else if (!isSeqA && isSeqB) {
|
||||
return -1
|
||||
} else {
|
||||
return a.id > b.id ? -1 : 1
|
||||
return a.id < b.id ? -1 : 1
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user