Add ordering to export