Hello There,
Check this all article and code than implement
{%- assign tag_groups = "size,color,weight,category" | split: "," -%}
{%- assign sorted_tags = "" -%}
{%- for group in tag_groups -%}
{% for tag in product.tags %}
{%- assign tag_group = tag | split: "_" | first -%}
{%- if tag_group == group -%}
{%- assign sorted_tags = sorted_tags | append: tag | append: "," -%}
{%- endif -%}
{% endfor %}
{%- endfor -%}
{%- assign sorted_tags_arr = sorted_tags | remove_last: "," | split: "," -%}
{%- for tag in sorted_tags_arr -%}
{{- tag -}}<br>
{%- endfor -%}
.........................................................................
<div class="product-single_tags">
<ul class="product-tags">
{% for tag in product.tags %}
<li>{{ tag }}</li>
{% endfor %}
</ul>
</div>
......................................................................
Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing