MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / rankAfterInDisplay

Function rankAfterInDisplay

src/bases/sortOrderUtils.ts:301–303  ·  view source on GitHub ↗
(targetRank: RankLike, direction: SortDirection)

Source from the content-addressed store, hash-verified

299}
300
301function rankAfterInDisplay(targetRank: RankLike, direction: SortDirection): RankLike {
302 return direction === "asc" ? safeGenNext(targetRank) : safeGenPrev(targetRank);
303}
304
305function betweenInDisplayOrder(
306 leftRank: RankLike,

Callers 1

prepareSortOrderUpdateFunction · 0.85

Calls 2

safeGenNextFunction · 0.85
safeGenPrevFunction · 0.85

Tested by

no test coverage detected