adding sort to performance checking
Merge pull request #595 from ifilippov/sort

adding sort to performance checking