# sort-select

> Sort options in a native select; the first option is the placeholder.

Status: Ready (Smootify 2.0)  
Add-on: Search & discovery  
URL: https://www.smootify.io/docs/astro/reference/elements/sort-select  
Updated: 2026-10-21

## Where it can go

- **Inside** [`smootify-search-discovery`](https://www.smootify.io/docs/astro/reference/elements/smootify-search-discovery).
- **Must contain** `form`, `select`.
- **Out of place,** Smootify removes it from the page: data-expand panels count as inside.

## What it requires

- The **Search & discovery** extension (lite or server plan, or the extension activated in the Smootify dashboard). Without it, the element does nothing.

## Fields in the form

It reads no field of yours: reads no name of yours: Smootify names the field `sort`.

## Attributes on the element

- **It reads** `selected-value`.

## Loading

Its code loads only on pages that have `sort-select`.
