<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/154966>154966</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Introduce a builtin for sorting types by mangled name
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang:frontend
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            ilya-biryukov
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ilya-biryukov
      </td>
    </tr>
</table>

<pre>
    #106730 has paved the way for such a builtin. We would also need to add a builtin that results the result of comparing two types by mangled name.
There is some preliminary work for this in the following draft PR: #152118
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxsUc3KnDwUvpq4OYxoYsy4yGI-Pga6K6XQ9dEcNX1jIvmZwbsvYwfeFrpKIE-eX0zJLp5IM_kf49y6Ay-jjUf5CA_GOZP_V1jyGqL-66kagzk046JteiUaWDHBjg8ykFeCJx4whwipTCsgjMW6bH0NPwieoTgD6FIATy94ADTmEwR5xQyRUnE5nWS_7xBmmMK2Y7R-gfwMkI-dEowHbOgXRwY8blSz5vZ9pUhgE6SwEeyRnN2sx3jAM8SP01hebYJTjGAOzoXni9VEnDN8_cbEDV7RJG_ba2W0MIMYsCLdKimvSnKlqlXPvMNeEAmaBQ6qR-qarpVzP14bFHyorOYNl82V81Y2SqpaGtUZ1fbzoFo1joZ1DW1oXe3cY6tDXCqbUiHdym7o-8rhSC69h5kc-oWJ2xyDz-TNe5uoX38vY1kS6xpnU06fbNlmR_qLzzGYMtEfJZ_jhJjPLv_VY1Wi02vOe2Lixvid8fti81rGegob4_eXxvu47DH8pCkzfj_tJ8bv7wQPzX8FAAD__5qMyko">