imaging: sort the remaining menu items if an item removed