@mcaskill/html-build-attributes/attr/sort-ordered-attributes.js
Creates a comparison function to sort attributes alphabetically with support for regular expressions and a wildcard.
A standalone *
represents all unspecified attributes, useful for inserting
these at a specific index among the ordered attributes.
import {
createOrderedAttributesComparator
} from '@mcaskill/html-build-attributes/attr/sort-ordered-attributes.js';
createOrderedAttributesComparator(expectedOrder: string[]): function
View example of sorting.