[PATCH 6.8 167/715] tools/resolve_btfids: Refactor set sorting with types from btf_ids.h