Create advanced sorting.cpp