Data UI Backlog

:default-sort type attribute

Plan: default-sort-plan.md.

Type-level key declaring the sort used when a request sends none:

:todos (:type-roles ("logged-in")
        :default-sort (:points :desc)
        ...)

Crucial for the video: the app opens showing each list in its best order (Model Bank by rating, todos by points) with no user action. Today the default is hardcoded: order by <table>.id on base types (phase-a-build-order-by), first-sortable-measure :desc on rollups (measure-default-sort). Neither is author-controllable.

Shape:

Related but separate: "Regular-type computed-field sort" (MVP Backlog) is about making :agg fields sortable at all; :default-sort only names already-sortable fields.

Completed (2026-08-28, plan revised after Grok's review, resolve once in be-list, not separately in both branches):

One test-authoring lesson: "id-ASC" on base types is UUID order, not insertion order; the absence-regression test compares against the table's actual order by id sequence, not the seed order.

Slot
26600
Status
60 Done
Tags
mvp, backend, model, compiler
Contributors
Donnie