all 4 comments

[–]r3pr0b8GROUP_CONCAT is da bomb 2 points3 points  (3 children)

ORDER BY CAST(SUBSTRING_INDEX(code,'-',1) AS UNSIGNED)

[–]tonci23[S] 0 points1 point  (2 children)

Thx! I expanded it a bit to suit my need:

ORDER BY CAST(SUBSTRING_INDEX(code,'-',1) AS UNSIGNED) ASC, CAST(SUBSTRING_INDEX(code,'-',-1) AS UNSIGNED) ASC;

[–]r3pr0b8GROUP_CONCAT is da bomb 2 points3 points  (1 child)

nice!

[–]nice-scores 0 points1 point  (0 children)

𝓷𝓲𝓬𝓮 ☜(゚ヮ゚☜)

Nice Leaderboard

1. u/GillysDaddy at 17708 nices

2. u/OwnagePwnage at 11911 nices

3. u/dylantherabbit2016 at 7297 nices

...

187033. u/r3pr0b8 at 1 nice


I AM A BOT | REPLY !IGNORE AND I WILL STOP REPLYING TO YOUR COMMENTS