Add the infrastructure and code for sorting HAGAR data in the offline analysis