diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPConnectionController.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index 9400f451..cc1daeb7 100644 --- a/Source/SPConnectionController.m +++ b/Source/SPConnectionController.m @@ -1160,13 +1160,13 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2, } } - NSUInteger i = [indexes firstIndex]; + NSUInteger i = [indexes lastIndex]; while (i != NSNotFound) { [nodes removeObjectAtIndex:i]; - i = [indexes indexGreaterThanIndex:i]; + i = [indexes indexLessThanIndex:i]; } [indexes release]; |