Minor Improvement to depthSortList.cpp

Just reducing LOC