icza/minquery

Reverse Sort

BigBuckBunny opened this issue · 2 comments

Hi,

My React app works fine until I do a reverse sort, I get the first page, but once I query the second page it crashes with:

Cannot load value: could not find symbol value for Message.

I can query hundreds of records ten at a time backwards, forwards, upside down and sideways, add the minus BOOM.

Disclaimer: Please note I exaggerated about certain directions in the previous statement.

Any thoughts

Pierre

icza commented

To be able to sort reversed, you must have an index where the field is sorted in reverse order, matching the directions that you specify in Sort().

D'OH!

I set this up last year and did everything by the book, forgot index.

Thanks, have a Good day