change the sort algorithm and add some comment about this file