I have a gallery that filters my columns based in certain criteria.
The bad sorting ocurrs while i try to filter two of my columns( these two are of type single line of text), i don't know why the sort order works like this.

Supplier is sorted descending, and 4017 is the first item while it has to be the last.
Why it works like this? Is there a form to make power apps order like excel, from A-Z and Z-A?
And the second error is that when i sort my date columns:

It sorts properly, but every time that i click on Expiry date a pop up error ocurrs:

Why is it giving me an error if it is working?Is there any form to make it not pop up?