Solving the group sorting problem with an AHP-based approach