Q: How can I sort a 'CArray' (or 'CStringArray', 'CIntArray', etc.)?

A: If the CxxxArray's items can be compared, then use 'std::sort':

Ascending:



#include <algorithm>