is it necessary to use the cQueue container?
For example, if you are using the std::vector you can use std::sort
any suggestions please ..Best Regards
--