• Resolved Timothy Couckuyt

    (@devplus_timo)


    Hey guys,

    You should consider adding a CAST statement to the meta_value in the ORDER BY clause… Otherwise ordering won’t ever display correct results. Amazing that nobody has ever experienced this before 🙁

    $pieces['orderby'] = "ORDER BY CAST( term_meta.meta_value AS UNSIGNED )";

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Incorrect sorting order’ is closed to new replies.