Skip to content

Commit

Permalink
feat: sort schools by end date
Browse files Browse the repository at this point in the history
  • Loading branch information
martapanc committed Oct 27, 2023
1 parent 02a21a7 commit 3eaea6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/queries/schools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export async function querySchools(locale: string) {
function schoolsQuery(locale: string) {
return gql`
query {
schools(locale: "${locale}", sort: "start:DESC") {
schools(locale: "${locale}", sort: "end:DESC") {
data {
id
attributes {
Expand Down

1 comment on commit 3eaea6b

@vercel
Copy link

@vercel vercel bot commented on 3eaea6b Oct 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.