Hi.
I suspect that this is not a MySQL query. Am I right?
I also suspect this is the same question you posted
here today, and
here four days ago.
If that is the case, please do NOT double post your questions. Far from increasing your chances to get an answer, it will only cause confusion (especially when posted in the wrong forums) and it may even result in you being banned from these forums.
Even if that is not the case, to accomplish this you would have to have some sort of a "front-end" application. Like a web-page or such, where your data is displayed and where the user presumably selects which columns he wants the data sorted by.
We can't help you unless we know what that "front-end" application is, and how you designed it.
P.S.
Please use [code] tags when posting your code examples, and read the
Posting Guidelines before posting!
MODERATOR