_list_blogs: Sort from newest to oldest

This commit is contained in:
Stig-Ørjan Smelror 2024-02-03 21:48:45 +01:00
parent edc70975e3
commit 59eca34cda

2
qsgen2
View File

@ -181,7 +181,7 @@ function _list_blogs() {
setopt local_options null_glob setopt local_options null_glob
# Directly capture matching blog files into an array # Directly capture matching blog files into an array
local -a blog_files=(blog/*.blog(O)) local -a blog_files=(blog/*.blog(On))
if (( ${#blog_files[@]} == 0 )); then if (( ${#blog_files[@]} == 0 )); then
if ${debug}; then _msg debug "_list_blogs: No blog files found."; fi if ${debug}; then _msg debug "_list_blogs: No blog files found."; fi