iOS - Parse.com按关系对象属性排序

时间:2015-01-24 17:06:11

标签: ios parse-platform

有没有办法按Parse中的关系对象的属性对查询进行排序?当我尝试按用户名排序时,它不会给我一个错误,但它也没有正确地对对象进行排序。

// Query for all friends the current user is following
var relationshipQuery: PFQuery = PFQuery(className: "Relationship")
relationshipQuery.whereKey("follower", equalTo: currentUser)

// Include the user
relationshipQuery.includeKey("followed")

// Order by username
relationshipQuery.orderByDescending("username")

0 个答案:

没有答案