Skip to content

Commit

Permalink
Fix ASCollectionView::rangeControllerVisibleNodeIndexPaths: to return…
Browse files Browse the repository at this point in the history
… a sorted array.
  • Loading branch information
nguyenhuy committed Nov 12, 2014
1 parent 1df67c4 commit 3642d57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AsyncDisplayKit/ASCollectionView.m
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ - (void)collectionView:(UICollectionView *)collectionView didEndDisplayingCell:(
- (NSArray *)rangeControllerVisibleNodeIndexPaths:(ASRangeController *)rangeController
{
ASDisplayNodeAssertMainThread();
return [self indexPathsForVisibleItems];
return [[self indexPathsForVisibleItems] sortedArrayUsingSelector:@selector(compare:)];
}

- (CGSize)rangeControllerViewportSize:(ASRangeController *)rangeController
Expand Down

0 comments on commit 3642d57

Please sign in to comment.