Groups plugin entries into PLUGIN_CATEGORIES order, keeping each category's declared type order and dropping empty categories. Any entry whose type is not in a declared category is collected into a trailing "Other" group so nothing is lost.
Any object carrying a type field.
type
Plugin entries to group (already filtered/searched by caller).
Non-empty { label, items } groups in display order.
{ label, items }
Groups plugin entries into PLUGIN_CATEGORIES order, keeping each category's declared type order and dropping empty categories. Any entry whose type is not in a declared category is collected into a trailing "Other" group so nothing is lost.