codeeval.com simple sorting commit. added test cases for future optimization