adding sort to performance checking