From 32db75dcff4ea1aca600420644654ef1071ccfd2 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 8 Apr 2025 18:34:21 -0300 Subject: sort: sortContributionsChronologically: getThing --- src/common-util/sort.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/common-util') diff --git a/src/common-util/sort.js b/src/common-util/sort.js index fd382033..3cfe8f70 100644 --- a/src/common-util/sort.js +++ b/src/common-util/sort.js @@ -413,6 +413,7 @@ export function sortFlashesChronologically(data, { export function sortContributionsChronologically(data, sortThings, { latestFirst = false, + getThing = contrib => contrib.thing, } = {}) { // Contributions only have one date property (which is provided when // the contribution is created). They're sorted by this most primarily, @@ -421,7 +422,7 @@ export function sortContributionsChronologically(data, sortThings, { const entries = data.map(contrib => ({ entry: contrib, - thing: contrib.thing, + thing: getThing(contrib), })); sortEntryThingPairs( -- cgit 1.3.0-6-gf8a5