diff --git a/web/public/locales/en.json b/web/public/locales/en.json index edc67ec4..09c45bf6 100644 --- a/web/public/locales/en.json +++ b/web/public/locales/en.json @@ -109,7 +109,7 @@ "ABOUT": "About", "MENU": "Menu", "SETTINGS": "Settings", - "ORDERS": "Bestellungen", + "ORDERS": "Orders", "USERS": "Users" }, "Meal": { diff --git a/web/src/app/[locale]/(main)/(user)/users/page.tsx b/web/src/app/[locale]/(main)/(user)/users/page.tsx index 04d5f9e9..4bbd8011 100644 --- a/web/src/app/[locale]/(main)/(user)/users/page.tsx +++ b/web/src/app/[locale]/(main)/(user)/users/page.tsx @@ -2,6 +2,7 @@ import { GET_ALL_USERS_ADMIN } from "@/documents/query/user"; import { useGqlQuery } from "@/fetcher"; +import { SortOrder } from "@/gql/graphql"; import { Link } from "@/navigation"; import { Table, @@ -19,7 +20,9 @@ interface UsersPageProps {} export default function UsersPage({}: UsersPageProps) { const t = useTranslations<"User">(); - const { data: { getAllUsersAdmin } = {} } = useGqlQuery(GET_ALL_USERS_ADMIN); + const { data: { getAllUsersAdmin } = {} } = useGqlQuery(GET_ALL_USERS_ADMIN, { + orderBy: { id: SortOrder.Asc }, + }); return ( <> @@ -47,7 +50,7 @@ export default function UsersPage({}: UsersPageProps) { - +