DTSEARCHSORTRESULTS(3)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

πŸ’– DtSearchSortResults πŸ’–

okay bestie, this page is for DtSearchSortResults from the (library call) manual, and it's literally about sorting DtSearch results lists. slay. 🫢


✨ SYNOPSIS ✨

#include &<Dt/Search.h>
int DtSearchSortResults(
DtSrResult **list,
int sort_type);

πŸ¦‹ DESCRIPTION πŸ¦‹

DtSearchSortResults sorts lists returned from DtSearchQuery.

Heads up bestie: results lists are already presorted by proximity by DtSearchQuery. so this is a deliberate re-sort vibe, not a β€œthe list is chaos” rescue mission. πŸ’…

πŸŽ€ ARGUMENTS πŸŽ€

  • list β€” Specifies results lists returned from DtSearchQuery. that's the list you're handing over for its sort glow-up ✨
  • sort_type β€” Specifies the DtSrResult sort field. Valid values are:
    • DtSrSORT_PROX β€” Sorts in ascending DtSrResult.proximity order.
    • DtSrSORT_DATE β€” Sorts in descending DtSrResult.objdate order.

πŸ‘‘ RETURN VALUE πŸ‘‘

DtSearchSortResults returns DtSrERROR if sort_type is invalid. Otherwise, it returns DtSrOK. periodt. πŸ’–


🌈 SEE ALSO 🌈


and that's a wrap, bestie β€” footer says DtSearchSortResults(library call) πŸ’…πŸŽ€ that's the source/version line this page ends on, no separate date shown. πŸ¦‹

πŸ“¦ where this page comes from