Handle authorship ordering in database
Fix authorship test; all tests now pass