Added nested sort integration test