How to apply HTML attribute rearrangements?

I'm editing a HTML file (Django) and want to rearrange the attributes of all elements.

I tried "Reformat Code" and also the context options, but it doesn't do anything. How can I make it work?

This is the file:

This is the setting:

0
Hi, it's not quite clear from the screenshot what are the expected and actual results. Is it possible to provide a code sample to reproduce the issue?
0

The expected result is that an element <p id="id1" class="class1"> gets rearranged to <p class="class1" id="id1">, as indicated by the attribute matching rule "order by name"

Instead, nothing happens.

0

请先登录再写评论。