css – sort class names in class attribute

I'm using a CSS utility library with many class names. I would like to sort the class list alphabetically to get code consistency, because utility libraries use many classes.


should be written as


In Webstorm IDE, a feature was found to rearrange attributes by name, but not to sort class attributes.

Any idea of ​​a plugin in an editor to do this automatically?

magento2 – Magento 2.3.0 – Create product page H1 titles with product names and attribute names

I've created two phtml files that can be invoked from a CMS block on a product page to reflect the product name and an attribute name.

As follows:

product name

{{block class = "Manufacturer product name Block product name"
template = "Vendor_ProductName :: productname.phtml"}}

Attribute name (artist)

{{block class = "Magento Catalog Block Product View" name = "artist"
template = "Magento_Catalog :: artist.phtml"}}

I want to be able to create a title within the H1 tag for the product name as follows

Buy & Product name & # 39; from & # 39; Artist & # 39;

Below is the currently used title.phtml code.

getCssClass ()? & # 39; # 39 & ;. $ block-> getCssClass (): & # 39; & # 39 ;;
$ title = & # 39; & # 39 ;;
if (trim ($ block-> getPageHeading ())) {
$ title = & # 39;getAddBaseAttribute (). ">"
, $ block-> escapeHtml ($ block-> getPageHeading ()). & # 39;& # 39 ;;
}
?>

    getRequest () -> getFullActionName () == & katalog_product_view & 39;):?>
        

<div class = "page-title-wrapper"> <h1 class = "tt-title-subpages noborder" getId ()):?> id = "getId ()?> " getAddBaseAttributeAria ()):?> aria-labelledby = "getAddBaseAttributeAria ()?> " > getChildHtml ()?>

And so it is spent at the front end

Terrace of a cafe by night (Place du Forum)

Is there any way or use of the PHP calls I use in the CMS blocks to create the H1 title of the product page?