<commit_before>---
'@keystone-next/keystone': major
'@keystone-next/adapter-prisma-legacy': major
'@keystone-next/website': patch
'@keystone-next/example-auth': patch
'@keystone-next/app-basic': patch
'@keystone-next/example-blog': patch
'@keystone-next/example-ecommerce': patch
'keystone-next-app': patch
'@keystone-next/example-next-lite': patch
'@keystone-next/example-roles': patch
'@keystone-next/example-sandbox': patch
'@keystone-next/example-todo': patch
'@keystone-next/example-with-auth': patch
'@keystone-next/types': patch
'@keystone-next/api-tests-legacy': patch
---

Deprecated the `sortBy` GraphQL filter. Updated the `orderBy` GraphQL filter with an improved API.

Previously a `User` list's `allUsers` query would have the argument:

```graphql
orderBy: String
```

The new API gives it the argument:

```graphql
orderBy: [UserOrderByInput!]! = []
```

where

```graphql<commit_msg>Fix reference to next-lite in changesets (#5788)<commit_after>---
'@keystone-next/keystone': major
'@keystone-next/adapter-prisma-legacy': major
'@keystone-next/website': patch
'@keystone-next/example-auth': patch
'@keystone-next/app-basic': patch
'@keystone-next/example-blog': patch
'@keystone-next/example-ecommerce': patch
'keystone-next-app': patch
'@keystone-next/example-embedded-nextjs': patch
'@keystone-next/example-roles': patch
'@keystone-next/example-sandbox': patch
'@keystone-next/example-todo': patch
'@keystone-next/example-with-auth': patch
'@keystone-next/types': patch
'@keystone-next/api-tests-legacy': patch
---

Deprecated the `sortBy` GraphQL filter. Updated the `orderBy` GraphQL filter with an improved API.

Previously a `User` list's `allUsers` query would have the argument:

```graphql
orderBy: String
```

The new API gives it the argument:

```graphql
orderBy: [UserOrderByInput!]! = []
```

where

```graphql
{'fraction_non_alphanumeric': 0.16512764801738186, 'fraction_numerical': 0.0021727322107550242, 'mean_word_length': 5.673913043478261, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2333058', 'n_tokens_mistral': 692, 'n_tokens_neox': 630, 'n_words': 145}