Hello Toolset
We have a problem with the sorting of thze search results in our product database. Since the alphabetcial sorting didn't get us the correct results, we tried switching to sorting it by article number.
hidden link
as you can see, this is also not in the correct order. The article numbers should sort from the lowest to the highest number. Is there something wrong with our shortcode? Could you please have a look?
Yes I was able to access the site and check on the view for you. I need some more time on this one to check to see what I can do, however from what I can see it will be difficult to sort because none of the attributes that you are using to sort is numeric or alphabet , rather alphanumeric.
In a case like this you will need to perform a natural sort using the natsort php function below. hidden link
The only way to get this to sort in the desired way is to write a completely custom wordpress database query so that you can control the sorting.
That is correct because of the alpha numeric values. Views relies on the WordPress WP_Query function in order to sort the items and this type of sorting isn't supported by the function.