Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Commit

Permalink
Sort first by used sectionName
Browse files Browse the repository at this point in the history
  • Loading branch information
3lvis committed Sep 4, 2015
1 parent 2f52acf commit 69f63fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Demos/CollectionView/CollectionView/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ - (DATASource *)dataSource {
if (_dataSource) return _dataSource;

NSFetchRequest *request = [[NSFetchRequest alloc] initWithEntityName:@"User"];
request.sortDescriptors = @[[NSSortDescriptor sortDescriptorWithKey:@"name"
ascending:YES]];
request.sortDescriptors = @[[NSSortDescriptor sortDescriptorWithKey:@"firstLetterOfName" ascending:YES], [NSSortDescriptor sortDescriptorWithKey:@"name" ascending:YES]];

_dataSource = [[DATASource alloc] initWithCollectionView:self.collectionView
fetchRequest:request
Expand Down

0 comments on commit 69f63fc

Please sign in to comment.