With only 10 elements, it really doesn't matter....... In fact, a bubble sort could end up faster with such a small dataset because of the simplicity. Especially if you have a lightweight comparison function.
For larger datasets, I would recommend using a priority_queue which does an extremely efficient tree sort, rather than reinventing the wheel.