A tool for group elements by multiple attributes