Implement for TableSort
Language: C/C++
IDE: VS2013