---
url: "https://vueda.dev/v3/reference/api/vue/SortGroup/events.md"
title: "SortGroup Events"
---

# SortGroup Events

## `update:sorted` {#event-update-sorted}

Emitted when the active sort array changes. Reset sort emits an empty array, which the host
reads as "use the default" rather than as "sort by nothing" — a list with no `o` param is one
the server sorts by its own default anyway.
[useViewList](/v3/reference/api/js/use/useViewList/functions/useViewList.md) answers it by
clearing the stored sort preference and applying `defaultSorted`; a host that just assigns
what it receives clears the sort instead. Emitting `defaultSorted` here would say the opposite:
`useViewList` would store it as an explicit preference, which is the one thing a default is not.
