-reverted sorter.cpp and sorter.h to working commit