add code for sort sub-menu