Skip to content

Commit 302d157

Browse files
committed
fix(people): consistently sort bios by first name
1 parent e93f8eb commit 302d157

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/ui/templates/PeopleTpl.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export const pageQuery = graphql`query PeopleTplQuery($uid: String!) {
183183
}
184184
overlords: allMarkdownRemark(
185185
filter: {fileAbsolutePath: {regex: "//pages/people/bios/*/.*/*.md/"}, frontmatter: {role: {elemMatch: {overlord: {eq: true}}}}}
186-
sort: {frontmatter: {score: DESC}}
186+
sort: {frontmatter: {fname: ASC}}
187187
) {
188188
edges {
189189
node {
@@ -217,7 +217,7 @@ export const pageQuery = graphql`query PeopleTplQuery($uid: String!) {
217217
}
218218
members: allMarkdownRemark(
219219
filter: {fileAbsolutePath: {regex: "//pages/people/bios/*/.*/*.md/"}, frontmatter: {role: {elemMatch: {member: {eq: true}}}}}
220-
sort: {frontmatter: {score: DESC}}
220+
sort: {frontmatter: {fname: ASC}}
221221
) {
222222
edges {
223223
node {
@@ -251,7 +251,7 @@ export const pageQuery = graphql`query PeopleTplQuery($uid: String!) {
251251
}
252252
accomplices: allMarkdownRemark(
253253
filter: {fileAbsolutePath: {regex: "//pages/people/bios/*/.*/*.md/"}, frontmatter: {role: {elemMatch: {accomplice: {eq: true}}}}}
254-
sort: [{frontmatter: {score: DESC}}, {frontmatter: {lname: ASC}}]
254+
sort: {frontmatter: {fname: ASC}}
255255
) {
256256
edges {
257257
node {

0 commit comments

Comments
 (0)