From 2007fcb34e93f272734bc9c4850a8dca38d812ed Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sat, 14 Jul 2018 02:18:22 +0200 Subject: [PATCH] fix project image sorting --- package.json | 4 ++-- src/templates/Project.jsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 43f8f18..676c756 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ }, "dependencies": { "file-saver": "^1.3.8", - "gatsby": "^2.0.0-beta.34", + "gatsby": "^2.0.0-beta.35", "gatsby-image": "^2.0.0-beta.6", "gatsby-plugin-favicon": "github:TuckerWhitehouse/gatsby-plugin-favicon#gatsby-v2", "gatsby-plugin-matomo": "^0.4.1", @@ -30,7 +30,7 @@ "gatsby-plugin-sass": "next", "gatsby-plugin-sharp": "^2.0.0-beta.5", "gatsby-plugin-sitemap": "next", - "gatsby-source-filesystem": "next", + "gatsby-source-filesystem": "^2.0.1-beta.4", "gatsby-transformer-json": "next", "gatsby-transformer-sharp": "next", "gatsby-transformer-yaml": "next", diff --git a/src/templates/Project.jsx b/src/templates/Project.jsx index f9781c2..5442402 100644 --- a/src/templates/Project.jsx +++ b/src/templates/Project.jsx @@ -123,7 +123,7 @@ export const projectAndProjectsQuery = graphql` projectImages: allImageSharp( filter: { fluid: { originalName: { regex: $slug } } } - sort: { fields: [id], order: ASC } + sort: { fields: [fluid___originalName], order: ASC } ) { edges { node {