Simplify code of mainmenu world sort