Moved initSortedSegmentsArray into drawRect:, since storyboards seem to set the segment sizes only late after initialization.