From 7285b4cf22472676134eb1a27bc551f610f988a9 Mon Sep 17 00:00:00 2001 From: Olivier DOSSMANN Date: Thu, 22 Aug 2013 15:30:41 +0200 Subject: [PATCH] [FIX] Categorie files order in homepage result --- create_homepage.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/create_homepage.lua b/create_homepage.lua index a71a3c4..b27baed 100755 --- a/create_homepage.lua +++ b/create_homepage.lua @@ -251,6 +251,8 @@ end -- Browse categ directory local categories_files = listing (currentpath .. '/' .. categ, categ_extension) +-- sort table in order to show categories in the alphabetical order +table.sort(categories_files) local content = '' if categories_files then for k,v in pairs(categories_files) do