diff --git a/src/.graphclient/index.ts b/src/.graphclient/index.ts index 510863f..9ab869f 100644 --- a/src/.graphclient/index.ts +++ b/src/.graphclient/index.ts @@ -10876,7 +10876,10 @@ export const getProjectGrantsDocument = gql` ${ShipDisplayFragmentDoc}` as unknown as DocumentNode; export const GetProjectsDocument = gql` query GetProjects($chainId: Int!) { - Project(where: {chainId: {_eq: $chainId}}) { + Project( + order_by: {db_write_timestamp: desc, hasEditedProfile: desc_nulls_last} + where: {chainId: {_eq: $chainId}} + ) { ...ProjectDetails metadata { ...RawMetadata @@ -10887,7 +10890,10 @@ export const GetProjectsDocument = gql` ${RawMetadataFragmentDoc}` as unknown as DocumentNode; export const GetUserProjectsDocument = gql` query GetUserProjects($id: String!) { - Project(where: {owner: {_eq: $id}}) { + Project( + order_by: {db_write_timestamp: desc, hasEditedProfile: desc_nulls_last} + where: {owner: {_eq: $id}} + ) { ...ProjectDetails metadata { ...RawMetadata diff --git a/src/graphql/newQueries/getProjects.graphql b/src/graphql/newQueries/getProjects.graphql index d641ba3..0c0695e 100644 --- a/src/graphql/newQueries/getProjects.graphql +++ b/src/graphql/newQueries/getProjects.graphql @@ -13,7 +13,10 @@ fragment RawMetadata on RawMetadata { } query GetProjects($chainId: Int!) { - Project(where: { chainId: { _eq: $chainId } }) { + Project( + order_by: { db_write_timestamp: desc, hasEditedProfile: desc_nulls_last } + where: { chainId: { _eq: $chainId } } + ) { ...ProjectDetails metadata { ...RawMetadata @@ -22,7 +25,10 @@ query GetProjects($chainId: Int!) { } query GetUserProjects($id: String!) { - Project(where: { owner: { _eq: $id } }) { + Project( + order_by: { db_write_timestamp: desc, hasEditedProfile: desc_nulls_last } + where: { owner: { _eq: $id } } + ) { ...ProjectDetails metadata { ...RawMetadata