SyntaxFix
Write A Post
Hire A Developer
Questions
You can use ORDER BY inside the GROUP_CONCAT function in this way:
ORDER BY
GROUP_CONCAT
SELECT li.client_id, group_concat(li.percentage ORDER BY li.views ASC) AS views, group_concat(li.percentage ORDER BY li.percentage ASC) FROM li GROUP BY client_id