SkilldexAll articles

Ask list tools for deterministic ordering

Use a reliable sort and tie-breaker when a skill selects first, latest, or top results.

A skill asked for the three most recently edited entries needs a sort rule that the service actually implements. If a result page arrives in an unspecified order, choosing its first three entries can yield a plausible answer with no guarantee it reflects the newest records.

Define the intended sort contract

Use a supported ordered query with an explicit primary field, direction, and stable tie-breaker when available. Timestamp precision can leave multiple records tied. Choose a unique identifier as the final ordering key where the API supports that behavior, and specify how missing dates should be handled.

Preserve limits and pagination

A service can rank results after applying filters, or apply filters within each page. Read the list contract before assuming a page limit counts toward a requested result limit. If there is no reliable ordering across the whole result set, state the scope that was searched and avoid presenting a subset as a global ranking.

Exercise changes during listing

Simulate two records with the same timestamp, then insert another record while paging. A consistent snapshot or provider cursor may address some concurrent edits. Where the service makes no consistency guarantee, test how duplicates and newly visible records are handled and clearly indicate incompleteness when relevant.

Sources