If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
Looks like the field hits is a character field and it's ordering things alphabetically. You can either rebuild the table with that field set to int (the proper way) or you could try either :
Code:
select * from file order by cast( hits as signed);
select * from file order by hits + 0;
You could use the following to see how you've defined the table :
Code:
show create table file;
Mike
PS I must of been slow typing, didn't realise someone else had answered