Mysql query when checked in phpmyadmin works without errors and changes are seen in the table, but when the phpmyadmin is refreshed it doesn't show changes.This query is written to sort the records in alpha numeric as order, when query written in PHP changes is shown but soon reverts back to the same unorderly table present before. I need it to arrange it in order
A1
A2
.
.
B1
B2
.
.
C1 and so on..
SELECT *FROM `supactive1` ORDER BY
CAST(Tno AS UNSIGNED)=0,
CAST(Tno AS UNSIGNED),
LEFT(Tno,1),
CAST(MID(Tno,2) AS UNSIGNED);