Add function to group a list of dictionaries by a value.