Update sortFunction.cpp