Use std::sort instead for std::stable_sort for std::list in order to fix Clang compilation (list is already stable).