Skip to content

Commit

Permalink
Sort by path instead of imagesharp
Browse files Browse the repository at this point in the history
  • Loading branch information
rdfurman committed Apr 26, 2024
1 parent 76b11fa commit 9003c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useGallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const useGallery = () => {
query {
allFile(
filter: { sourceInstanceName: { eq: "gallery" } }
sort: { childImageSharp: { fluid: { originalName: ASC } } }
sort: { absolutePath: ASC }
) {
nodes {
id
Expand Down

0 comments on commit 9003c0e

Please sign in to comment.