I have set a string (which is in fact a string) as the sectionNameKeyPath. It’s sorts fine, but for example 16 september 2011, is in an earlier section than 2 september 2011. What is the best way to work around this problem

Update My workaround is instead of a string, make an int from it (e.g. 20110909 for 2011-09-09) and then later in titleForHeader method turn it in a string again
This is because as in any other language, this is sorted as an String and the first character 3 is bigger than 1. You will have to implement your own comparator if you want them to sort any other way.