Arranges a set of rows into a convenient order to use in call-changes so that the minimum number of calls is required to include all the rows.