Skip to content

Commit

Permalink
fix: Sort by title if the date matches (#65)
Browse files Browse the repository at this point in the history
* fix: Sort by title if the date matches

* fix: Sort title ascending
  • Loading branch information
deviantintegral authored Sep 14, 2022
1 parent dc1e1cd commit 3002bac
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/gatsby-theme-adr/src/components/AdrsTimeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ import TagList from './TagList';

const query = graphql`
query LatestAdrs {
allMdx(sort: { order: DESC, fields: frontmatter___date }, limit: 8) {
allMdx(
sort: {
order: [DESC, ASC]
fields: [frontmatter___date, frontmatter___title]
}
limit: 8
) {
edges {
node {
frontmatter {
Expand Down

0 comments on commit 3002bac

Please sign in to comment.