Quantcast
Channel: Swift optimization level 'Fastest' breaks sorting of array - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by DJF for Swift optimization level 'Fastest' breaks sorting of array

This appears to be down to your naming convention within your sorted closure. Changing (p1, p2) to different names will resolve it. With -Ofastest, the compiler seems to be incorrectly doing 2...

View Article



Swift optimization level 'Fastest' breaks sorting of array

I have a really strange issue. I'm sorting an array of NSDictionary objects in my app, but it only works correctly when the app is running from Xcode. As soon as I distribute the app and install &...

View Article
Browsing latest articles
Browse All 2 View Live


Latest Images