PouchDB View unable to sort on date data

Wappler Version: Wappler 6 Beta 15
Operating System: Windows 11
Server Model: Capacitor
Database Type: Pouch/Sqlite
Hosting Type: N/A

Expected behavior

Sorting on a Date field should sort records correctly.

Actual behavior

Records do not appear to follow the date sort

How to reproduce

  1. Setup Pouch with a database table that has a Datetime field
    image
  2. Add records with a date field
    image
  3. Add a PouchDB View to page and attempt to sort on the date field
    image

As the date is formatted display date, you might want to convert it to something else so it can be sortable. Like a timestamp or iso date

There’s no expression editor on the sorton property. Will it work if I hand code it? Or are you saying I should modify it in the database when it’s inserted?