Using Erlang's =maps:groups_from_list/2= function

Since OTP 25, Erlang has included a function maps:groups_from_list/2 and I had occasion to use it recently. In KAZOO , we have a process that monitors other processes, keeping track of their message queue length, heap size, etc (we're on OTP 26 at the moment so need to do this manually). I wanted to print a table of the tracked processes, ordered first by message queue length, but within the…