From your example it looks like you just want to shift the bottom four names above all others, without paying attention to them beeing sortet at all, is that correct ??
Then just use something like a
std::queue to store them in, and
pop() size()-4 times followed by
push()