Sort the exported data