Sort
{allMarkdownRemark(sort: { fields: [frontmatter___date], order: ASC }) {totalCountedges {node {frontmatter {titledate}}}}}
The ordering of your results can be specified with sort
. Here the results are sorted in ascending order of frontmatter
's date
field.