« get me outta code hell

data: refactor sortByDate to handle latestFirst directly - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies
diff options
context:
space:
mode:
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
commit3a322d96666b8da2b615ffd1c245f3a2f3d0cd90 (patch)
tree7c3607682293ed1491d848fea7b427e6e183a433 /src/content/dependencies
parent7e0dfb0f797b6dabad4a4491ef8e7333cc199926 (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/content/dependencies')
0 files changed, 0 insertions, 0 deletions