Fix ASCollectionView::rangeControllerVisibleNodeIndexPaths: to return a sorted array.

This commit is contained in:
Huy Nguyen
2014-11-11 18:10:38 +02:00
parent 1df67c42b9
commit 3642d5773a

View File

@@ -274,7 +274,7 @@ static BOOL _isInterceptedSelector(SEL sel)
- (NSArray *)rangeControllerVisibleNodeIndexPaths:(ASRangeController *)rangeController
{
ASDisplayNodeAssertMainThread();
return [self indexPathsForVisibleItems];
return [[self indexPathsForVisibleItems] sortedArrayUsingSelector:@selector(compare:)];
}
- (CGSize)rangeControllerViewportSize:(ASRangeController *)rangeController