[PATCH 6.1 133/451] tools/resolve_btfids: Refactor set sorting with types from btf_ids.h