Sort a vector in which the n first elements have been already sorted? August 31, 2023 by Tarik Sort the other range only, and then use std::merge.