change <a> and <li> nesting order