It looks like pivot tables first try to format the date (the format is hard coded somewhere btw) and then sort on the formatted version, which ends up looking something like the attached image. See how all Fridays are before all Mondays!

It’s a very old issue, that never been prioritized enough to be fixed :frowning: You can follow this GitHub issue: https://github.com/getredash/redash/issues/216.

You can solve this by using (at least in mysql) date_format(datefield,’%Y-%M-%D’)