WPIntell

Source evidence

Sort fail

Attribute Dropdowns · support · 2021-05-13T09:51:00+00:00

complaintsentiment
mediumseverity
0.74relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

3 / 19 rows with source links

15.8% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

16 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
denizhan486 unresolved
Hello, It is a small plugin but it works very well, but it sorts the numerical values ​​as if they were alphabetical, while Woocommerce stretches in the order I want in the original attribute filter, in this plugi; 100 1001 1100 200 like. How can I solve this sorting problem? Hello, Try to replace the line: ORDER BY terms.name"; with: ORDER BY cast(terms.name as unsigned)"; in the file: /wp-content/plugins/attribute-dropdowns/Model/Selector.php Stanislav I made it thanks to you

Comments

2 shown
Pektsekye 2021-05-13T14:44:00+00:00

Hello, Try to replace the line: ORDER BY terms.name"; with: ORDER BY cast(terms.name as unsigned)"; in the file: /wp-content/plugins/attribute-dropdowns/Model/Selector.php Stanislav

denizhan486 2021-05-13T15:19:00+00:00

I made it thanks to you