sorting of EG and Taus