I am trying to use Core Data and it’s ordered relationships feature, and I just can’t find how would I actually specify ordering. I marked my relationship as ‘ordered’, but don’t see where I set, say, ‘order by attribute XXX descending’.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
An ordered relationship only means that ordered in a arbitrary manner. (Ordered by the user for example.)
If you want to have an order related to your attributes, add a sort descriptor to your fetch request :