Bug fix - segments bad when calendar has 10 or more columns

There was a call to sort() that was sorting the column index
alphabetically. Changed to a number sort fixes it.