I am using php with mysql. To make things simple lets assume I have several columns in my database called username, password and login_date. I have added an index to the column login_date and called this index "A". Here is a select statement I would use---
select*from table where login_date="whatever";
How do I make my select statement so that is will sort by giving column login_date with index "A" priority over the other columns? How does it recognize there is an index that will make that field a priority or is it automatically a priority because there is an index associated to it?