We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a722a8 commit b80ff6fCopy full SHA for b80ff6f
1 file changed
layouts/partials/blox/library.html
@@ -130,9 +130,12 @@
130
{{ $years = $years | append $year }}
131
{{ end }}
132
133
- {{ range reverse (sort $years) }}
134
- <option value="{{ . }}">{{ . }}</option>
+ {{ $sorted_years := sort $years }}
+ {{ range $i := seq (sub (len $sorted_years) 1) -1 0 }}
135
+ {{ $year := index $sorted_years $i }}
136
+ <option value="{{ $year }}">{{ $year }}</option>
137
138
+
139
</select>
140
</div>
141
0 commit comments