https://wheyproteinonz.blogspot.com/2023/03/grouping-of-elements-of-set-with-first.html