Hi,
One of the comments needs correction "sorting all tuples in the thedataset" should have been "sorting all tuples in the dataset".The Attached patch has the changes for the same.
Regards,VigneshEnterpriseDB: http://www.enterprisedb.com