port view menu to new sort order structure