Added the sort order segmentController