Roobiq / RBQFetchedResultsController

Drop-in replacement for NSFetchedResultsController backed by Realm.
MIT License
476 stars 70 forks source link

Comparator for section titles #37

Closed beloso closed 9 years ago

beloso commented 9 years ago

I would like to use a custom comparator for section titles.

I know it has a drawback in performance with Realm.

But Alphabetical order is not "good" enough for my case.

I need to push "#" to the end, after the normal letters.

Is that possible?

bigfish24 commented 9 years ago

Just to clarify, you need to sort the sections in a different order than Realm provides with their sorting by key?

beloso commented 9 years ago

Yes.

But I did this another way. I've added a "sortOrder" column to my model.

bigfish24 commented 9 years ago

Yeah that is the better way in terms of performance. Realm does plan to support more sorting functionality in the future.