diff options
| author | Henry Jameson <me@hjkos.com> | 2019-01-25 17:55:56 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2019-01-25 17:55:56 +0300 |
| commit | 9f914824cb7713c55b6563f31b510fc83e4c1e4d (patch) | |
| tree | 16921344277a40d34584d3e0d642d161ce10edba /src/components/conversation/conversation.js | |
| parent | a733a33d36af6fed3f338449218686d22b1c9354 (diff) | |
i should take it easy
Diffstat (limited to 'src/components/conversation/conversation.js')
| -rw-r--r-- | src/components/conversation/conversation.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/conversation/conversation.js b/src/components/conversation/conversation.js index 0ecbaddc..c18781de 100644 --- a/src/components/conversation/conversation.js +++ b/src/components/conversation/conversation.js @@ -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 } } |
