Hey @nodesk,
No, that’s all right, and thank you for the offer. ??
I filed the bug report and then got to talking with some of my colleagues about this.
Ultimately, this is a technical limitation with MySQL and the way WordPress queries work.
MySQL cannot sort alphabetically and numerically at the same time. If sorting alphabetically (or reverse, like Z-A), then that’s how it’ll be sorted and you’ll get 1, 10, 100, 2, 20, 200, 3, 30, 300 and so on and so forth.
This can be overcome with custom sorting, though we rely on WP_Query, which is WordPress’ default way to retrieve posts. Our plugin changes how things are sorted in that query, which is how we can offer more options than the default.
That said, we’re still using WP_Query, which doesn’t have that kind of sorting built into it. If you’re interested in the technical details, you can take a look at these resources:
WordPress Query: Order & Orderby Parameters
StackExchange: WP Query orderby meta key natural sort?
All of this is to say that, due to our use of the WP_Query class, we’re unable to fix this limitation at this time, I’m afraid. However, if this is really important to you, you could work with a third-party developer to add that custom sorting for your specific use-case.
Another option is perhaps renaming things to be number-first and then sort numerically, so you get:
101-GIFT, 100-GIFT, 26-GIFT
I hope that helps to explain why we’re not able to fix this up at this time. I’m sorry I don’t have better news here.
Is there anything else I can help out with? Please don’t hesitate to let me know.
Thanks!
Julie ??
SkyVerge