added a comparison with std::sort