Skip to content

Commit 5d43d0d

Browse files
committed
Don't have version_compare
1 parent 95f17f7 commit 5d43d0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/documentation.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<article class="col-12">
2121
<div class="entry-content">{{ page.content }}</div>
2222
{% set component = page.component %}
23-
{% set tags = site.data.github.libimobiledevice[component].tags | sort((a,b) => version_compare(b, a)) %}
23+
{% set tags = site.data.github.libimobiledevice[component].tags | sort((a,b) => (b|split('.')|map(v => '%05d'|format(v))|join) <=> (a|split('.')|map(v => '%05d'|format(v))|join)) %}
2424
{% for tag in tags %}
2525
<div class="entry-content">
2626
<a href="{{ component }}/{{ tag }}/">{{ component }} {{ tag }}</a>

0 commit comments

Comments
 (0)