more careful sorting of the menu; readme generator more failure-resistant; add missin...
[web.git] / _plugins / menu.rb
index 98614b76616cca1f285c00df29ab1666a958a5b6..befe357a3e318861f34f641398618791afa2a973 100644 (file)
@@ -30,7 +30,7 @@ module Jekyll
                     end
                 end
                 # sort the result before returning it
-                result.sort_by { |a| a['url'] }
+                result.sort_by { |a| [a['sort'], a['url']] }
             end
             
             create_menu(input, "", displayurl.sub('/index.html', ''))