orderby utilities

This commit is contained in:
John Rommel Estropia committed 2017-10-02 08:04:28 +09:00
1 parent 1d2eef7894
commit 06635c9d2f
2 files changed
+68

No files matched your search

+1
View File
@@ -237,6 +237,7 @@ class DynamicModelTests: BaseTestDataTestCase {
_ = transaction.fetchAll(
From<Dog>()
.where(\.age == 10 && \Animal.species == "Dog")
.orderBy(.ascending({ $0.species }))
)
_ = transaction.fetchAll(
From<Dog>(),