Fixed a sort problem in the blog menu
Posted by mholmes on 01 May 2007 in Activity log
The left menu in the main blog home page, showing the list of blogs, was sorted case-sensitively, with lower-case elements such as teiJournal sorting after all the upper-case ones. Investigated this, and found that the sorting code is in this page:
/blogs/skins/_bloglist.php
This code basically creates an array of the blog list item tags, indexed on the blog name, and then sorts it using ksort
. Lower-casing the blog name before it's used as the array key solves the problem, so I've implemented that fix.
This entry was posted by Martin and filed under Activity log.