fixing sorting of receipt groups