Hi, I'm new to the board so please be gentle with me. Anyway I seem to have a problem, I am creating a league table for sales people, I have got it doing everything I want apart from one thing, the ordering. My script creates a temporary table and then I extract the information from that table and order it by the total of sales, however the ordering is wrong this is how it is ordering the total of sales at the moment: 9675 2140 18790?? Surely the 18790 should be at the top? It looks like mysql is ordering the numbers by the first number and not the whole value!! Any thoughts on this would be appriciated. Thanks A