The idea is instead of searching through your list...
# advancedpdf
m
The idea is instead of searching through your list for each line, rather sort it by the item you want to group by, and then loop through checking if the group by value is the same or not.