fixed bug with Order by where the columns weren't ordered properly.