ios - Sort a relationship in cosmicmind graph's library -


i'm using graph library , need sort relationship relationship.subject field [ " idorder " ] . it's possible it? , if idorder isn't int date?

yes can swift 3, in development branch.

_ = graph.search(forrelationship: ["t1"]).sorted { (a, b) -> bool in         return a.subject!["idorder"] as! int > b.subject!["idorder"] as! int     } 

all best :)


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -