first commit for the new group sorting in chests