Hi,
PFA patch to fix the issue where we were sorting columns based on labelsinstead of their position.RM#1687
Please review.--Regards,Murtuza ZabuawalaEnterpriseDB: http://www.enterprisedb.comThe Enterprise PostgreSQL Company