Update: Your plugin appears to work correctly with one instance of the plugin installed. We were hoping to do multiple instances by department, positioned in different columns.
With 1 instance, things work as expected.
With 2 instances, the first instance is [the list of the department] x2 and the second instance is shows [one list of the first department].
With 3 instances, the first is [the list of the department] x3, the second is [the list of the first department] x2, and the third is a [single list of the first department]
Can this code be rewritten to hand multiples better?