From 302d157e674d099ec334237bf9bbf58fcc098a07 Mon Sep 17 00:00:00 2001 From: Lou Huang Date: Sat, 14 Dec 2024 12:55:29 -0500 Subject: [PATCH] fix(people): consistently sort bios by first name --- lib/ui/templates/PeopleTpl.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ui/templates/PeopleTpl.js b/lib/ui/templates/PeopleTpl.js index 13bdc3ba..44f5bf50 100644 --- a/lib/ui/templates/PeopleTpl.js +++ b/lib/ui/templates/PeopleTpl.js @@ -183,7 +183,7 @@ export const pageQuery = graphql`query PeopleTplQuery($uid: String!) { } overlords: allMarkdownRemark( filter: {fileAbsolutePath: {regex: "//pages/people/bios/*/.*/*.md/"}, frontmatter: {role: {elemMatch: {overlord: {eq: true}}}}} - sort: {frontmatter: {score: DESC}} + sort: {frontmatter: {fname: ASC}} ) { edges { node { @@ -217,7 +217,7 @@ export const pageQuery = graphql`query PeopleTplQuery($uid: String!) { } members: allMarkdownRemark( filter: {fileAbsolutePath: {regex: "//pages/people/bios/*/.*/*.md/"}, frontmatter: {role: {elemMatch: {member: {eq: true}}}}} - sort: {frontmatter: {score: DESC}} + sort: {frontmatter: {fname: ASC}} ) { edges { node { @@ -251,7 +251,7 @@ export const pageQuery = graphql`query PeopleTplQuery($uid: String!) { } accomplices: allMarkdownRemark( filter: {fileAbsolutePath: {regex: "//pages/people/bios/*/.*/*.md/"}, frontmatter: {role: {elemMatch: {accomplice: {eq: true}}}}} - sort: [{frontmatter: {score: DESC}}, {frontmatter: {lname: ASC}}] + sort: {frontmatter: {fname: ASC}} ) { edges { node {