update sort3.cpp