Hello, there is a task to sort the blocks by the data-attribute, for example, there is the source code:
<div data-sort="one">123</div> <div data-sort="three">345</div> <div data-sort="three">3534</div> <div data-sort="two">56546</div> <div data-sort="one">546546</div> After processing the plugin, it is necessary to obtain the following result:
One <div data-sort="one">123</div> <div data-sort="one">546546</div> Two <div data-sort="two">56546</div> Three <div data-sort="three">345</div> <div data-sort="three">3534</div> I just want a plugin for this to connect, preferably with a callback api, so that the handlers are not reset