CloudKit query incorrectly sorted

I have a simple CloudKit query over a given record type, with a sort descriptor for one of the attribute, which is of type String, and the results come out in the wrong order. This is even visible in the CloudKit console (see screenshot, ordering is by title). Can anyone explains what happens here ? I've checked that there wasn't any weird characters in the attributes.

Thanks.