Contentful logo

Contentful Community

Wrong sorting based on date field

Hello.

I want to sort some entries in reverse order using a date field without timezone.
My content looks like this:
{title: ‘entry y’, date: ‘2021-04-26T15:00’}
{title: ‘entry z’, date: ‘2021-04-02T23:59’}
{title: ‘entry x’, date: ‘2021-04-04T19:00’}

My request:
content_type: foo
order: -fields.date
limit: 3

The second one should appear first, but it doesn’t. Instead, the second one appears first.What I’m doing wrong?