Added cursor sort tests.