sort popup menu