Skip to content

Commit b80ff6f

Browse files
committed
3
1 parent 2a722a8 commit b80ff6f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

layouts/partials/blox/library.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,12 @@
130130
{{ $years = $years | append $year }}
131131
{{ end }}
132132
{{ end }}
133-
{{ range reverse (sort $years) }}
134-
<option value="{{ . }}">{{ . }}</option>
133+
{{ $sorted_years := sort $years }}
134+
{{ range $i := seq (sub (len $sorted_years) 1) -1 0 }}
135+
{{ $year := index $sorted_years $i }}
136+
<option value="{{ $year }}">{{ $year }}</option>
135137
{{ end }}
138+
136139
</select>
137140
</div>
138141

0 commit comments

Comments
 (0)