You need to learn what a compiler is, and what it does, first by the sounds of it. Presumably you intend to use scanf or fgets to get the values from the user?
Then you'd use the function called qsort, searching the web for how to use it.
Finally, you'd post your attempt at this here, for everyone to see.

Last edited by iMalc; 01-26-2013 at 07:11 PM.

My homepage
Advice: Take only as directed - If symptoms persist, please see your debugger

Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

You have a few more where you do something similar. What are you trying to do here? You store "Queen" into the character buffer `value' and then you want to tack on a "12" at the end?? I think it would make more sense to make a different member of your struct and then do something like this