feat: change sort order of indexes

This commit is contained in:
2021-12-13 19:16:00 +00:00
parent a49351bf1f
commit 90df047f23
2 changed files with 4 additions and 4 deletions

View File

@@ -65,7 +65,7 @@ export const query = graphql`
} }
caseStudies: allCaseStudy( caseStudies: allCaseStudy(
filter: { type: { eq: "bathrooms" } } filter: { type: { eq: "bathrooms" } }
sort: { fields: index } sort: { fields: index, order: DESC }
) { ) {
nodes { nodes {
title title
@@ -79,7 +79,7 @@ export const query = graphql`
regex: "/bathrooms-cs(01a|02a|03a|04a|05a|06a|07a|08j|09m|10d|11o|12a).jpg$/" regex: "/bathrooms-cs(01a|02a|03a|04a|05a|06a|07a|08j|09m|10d|11o|12a).jpg$/"
} }
} }
sort: { fields: relativePath } sort: { fields: relativePath, order: DESC }
) { ) {
nodes { nodes {
childImageSharp { childImageSharp {

View File

@@ -50,7 +50,7 @@ export const query = graphql`
} }
caseStudies: allCaseStudy( caseStudies: allCaseStudy(
filter: { type: { eq: "tiling" } } filter: { type: { eq: "tiling" } }
sort: { fields: index } sort: { fields: index, order: DESC }
) { ) {
nodes { nodes {
title title
@@ -62,7 +62,7 @@ export const query = graphql`
filter: { filter: {
relativePath: { regex: "/tiling-cs(01d|02e|03a|04a|05a|06a).jpg$/" } relativePath: { regex: "/tiling-cs(01d|02e|03a|04a|05a|06a).jpg$/" }
} }
sort: { fields: relativePath } sort: { fields: relativePath, order: DESC }
) { ) {
nodes { nodes {
childImageSharp { childImageSharp {