Quote Originally Posted by Adak
I'll sort it with the system.
I suspected as much when you talked about using a file

Quote Originally Posted by Adak
A lot of people don't know that Windows2000 and up, has special resources for sorting, that user's programs don't have.
However, this is the C programming forum, not an OS specific forum (you were the first person to mention Windows), and although the command that you intend to use should be rather portable in practice, it still relies on something that may not be available with a fully standard conforming C (or C++) implementation.