[PATCH 6.6 193/638] tools/resolve_btfids: Refactor set sorting with types from btf_ids.h