Oyvindkg / swiftydb

💀Neither supported nor maintained for years. A type-safe, protocol-based, pure Swift database offering effortless persistence of any object

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to sort the query result

swifth opened this issue · comments

commented

how to sort the query result? Only filter found. we want something like sortBy id desc, etc.

At the moment, ORDER BY is not supported. Unfortunately I don't think I have got the time to anything about it before May. You are welcome to implement something and send a pull request, if you have the time :)

Until then, maybe you could use Swift's sort methods instead? They might be a bit slower, depending on your data/queries, but unless you have huge datasets, they will probably do the trick!

commented

I had fork a branch : https://github.com/swifth/SwifthDB . and add support for order by and carthage support. and removed the multiple SQLiteDatatype definition. and fixed others bugs. But I have no idea how to merge into master.