Created
June 7, 2014 14:36
-
-
Save amolloy/c6f0d577e8e8d1eaf0e3 to your computer and use it in GitHub Desktop.
Dealing with instancesOrderedBy: being missing in Swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Model.inDatabaseSync() { (db) in | |
let rs = db.executeQuery("SELECT * FROM model ORDER BY foo”, withArgumentsInArray:[]) | |
self.results = Model.instancesFromResultSet(rs) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment