jwknz
jwknz

Reputation: 6824

What is used for Core Data Ordering?

Going off this question on SO Ordered CoreData records

I understand that ordering data in a Core Data, by orderID is not possible. When you use:

sortDescriptorWithKey:@"name" ascending:YES

It sorts in alphabetical order, when you select NO then the order appears to be random, but not every time on a new launch.

Does anyone know what order is being chosen? If it was random, then would it not have to change every time?

Upvotes: 1

Views: 106

Answers (1)

DrummerB
DrummerB

Reputation: 40211

It's supposed to be descending.

Upvotes: 1

Related Questions