Could we take in a class as a value instead? That way, users could add their own sorting implementation instead of having JUnit define all the ways you could sort.