After upgrading to Xcode 8 and converting all my code to Swift 3, I have troubles compiling swift resources. It takes a very long time, and my computer gets super laggy and
In my case, when I found that issue the chunk of code was:
return realm2.objects(Alert.self).sorted(by: { (alert1, alert2) -> Bool in return alert1.hour < alert2.hour && alert1.minute < alert2.minute && alert1.label < alert2.label })