sort view and control