Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 380 Bytes

order.md

File metadata and controls

27 lines (18 loc) · 380 Bytes

Order

OrderBy

//:playground
var query = new Query("Comments").OrderBy("Date").OrderByDesc("Name");
SELECT * FROM [Comments] ORDER BY [Date], [Name] DESC

OrderByRaw

//:playground
var query = new Query("Comments").OrderByRaw("[Likes] DESC NULLS LAST")

In PostgreSql

SELECT * FROM "Comments" ORDER BY "Likes" DESC NULLS LAST