feat: change sort order of indexes
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user