Regular-type computed-field sort
Sort a Lisp-collapsed join aggregate on an ordinary type list (e.g. Model Bank :models :average-rating with :agg :avg) honestly with paging and :total.
List-plan covers base-column sort (04) and measure/rollup sort (09). It deliberately does not make every :agg field on a regular type sortable: post-collapse sort lies under LIMIT, and honest sort needs SQL aggregation before paging (measure Phase A or a denormalized base column).
Until this lands, ranked-by-aggregate UX uses a rollup type (list-plan 07–09 / 12). Options for this item later:
- Promote the list to measure Phase A when sort targets an aggregate field, or
- Denormalize the measure onto the base row (trigger/maintained column) and mark it
:sortable tas a real base column.
Do not implement as post-collapse sort on a page of rows.
:CREATED: <span class="timestamp-wrapper"><span class="timestamp">[2026-08-09 Sun]</span></span>
- Slot
- 10800
- Status
- 10 Open
- Tags
- backend, compiler, list
- Contributors
- Donnie