Skip to content

Commit

Permalink
Fix chapter sorting in Chinese
Browse files Browse the repository at this point in the history
Sort by slug instead of string title. String sorting would cause 三 to come before 二
  • Loading branch information
ines committed Jul 6, 2020
1 parent 22bb7d9 commit af72ded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default ({ lang = 'en' }) => {
const query = graphql`
{
allMarkdownRemark(
sort: { fields: [frontmatter___title], order: ASC }
sort: { fields: [fields___slug], order: ASC }
filter: { frontmatter: { type: { eq: "chapter" } } }
) {
edges {
Expand Down

0 comments on commit af72ded

Please sign in to comment.