Row sorting redesign