Trim .xhtml off strings before comparing, so they're sorted correctly