[PATCH 6.7 224/713] tools/resolve_btfids: Refactor set sorting with types from btf_ids.h