Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › woocommerce results – sku sort › Reply To: woocommerce results – sku sort
Hi,
The results page layout, and how the name is displayed does not affect the sorting, it does no effect.
If the primary sorting is set by ‘_sku’, it means that for example if you type in ‘101-0100’, then no matter where the match was, it will be ordered by ‘_sku’: https://i.imgur.com/ussuvon.png
(this is same on the results page, it’s just an example)
The ordering is correct as configured (_sku ascending):
01-044-5800-0
01-044-5801-0
01-044-5804-0
01-044-5814-0
…
01-101-0100-0
The ordering is applied after the search, and because ‘101-0100’ matches other products in the product content, it displays those as well, ordered by their SKU.
Best,Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)