diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-04-27 16:16:53 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-04-27 16:16:53 -0300 |
commit | 3a322d96666b8da2b615ffd1c245f3a2f3d0cd90 (patch) | |
tree | 7c3607682293ed1491d848fea7b427e6e183a433 /src/data | |
parent | 7e0dfb0f797b6dabad4a4491ef8e7333cc199926 (diff) |
data: refactor sortByDate to handle latestFirst directly
Fixes #180. This enables sortByDate to keep dateless items at the end even when sorting with latest first, and conveniently reduces the ops since there's no need for .reverse() before and after the sort anymore. It also cleans logic by deduplicating latest-first code in compositional sort functions using sortByDate.
Diffstat (limited to 'src/data')
0 files changed, 0 insertions, 0 deletions