Improving export file
adding sort to the catalogs