[repo] improved the performance of 'sort'