I am getting data from a table and removing rows i dont need by setting a date limit. From the left over ones i am running another mysql_query and using those Invoice values I am sorting through the left over ones with basically the same query except that now i need to ORDER BY ___ ASC. Problem is the rows are limited to the ones i need but the ORDER BY just isnt doing anything... the dates are in a random order.