Skip to content

Commit

Permalink
fix(people): consistently sort bios by first name
Browse files Browse the repository at this point in the history
  • Loading branch information
louh committed Dec 14, 2024
1 parent e93f8eb commit 302d157
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ui/templates/PeopleTpl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 302d157

Please sign in to comment.