Fix DB error on Wikilog title sorting. Fixes #1