> For the complete documentation index, see [llms.txt](https://standard-resource.js.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://standard-resource.js.org/groups/sorted-groups.md).

# Sorted Groups

To keep a group sorted, you must manually sort the group outside of the store and then use [`store.update()`](/api-reference/store.md#update-path-changes-options) to replace the existing group with the new, sorted version of the group.

```javascript
store.update('favoriteBooks', sortedFavoriteBooks);
```
