First sort

Check must be run after the sorting. it's a test not a part of sorting process.