Support Topics Documentation Slack YouTube Blog

Sorting By Date Created (newest) iOS

I’m trying to use DataQueryBuilder to retrieve items in the order that they were created with the newest items being returned first. How can I manage this?


let dqb = DataQueryBuilder.init()
dqb.addSortBy(sortBy: "created, DESC")

returns no items

I believe you need to remove the comma after “created”.


That worked perfectly thank you Mark!