Kemal
Kemal

Reputation: 31

GraphQL does not sort Turkish date field as expected

in Gatsby I have MarkDown posts. Frontmatter of each post has date field in Turkish format (dd MMMM yyyy). GraphQL query sorts posts only on dd portion not taking account of MMMM and yyyy portions. I expect DESC sort, Turkish Date format. any help please TIA

Upvotes: 0

Views: 80

Answers (1)

Ben.
Ben.

Reputation: 11

As @xadm said in his comment, you must adhere to the Gatsby date format:

Just change the date format in your md file as follows

date: "2019-05-04"

Read more on Gatsby docs here

Upvotes: 1

Related Questions