Hi,

Could you give me some hints on the Gold challenge?

I tried to use the following solution. In the following method, it tried to compare the destinationIndexPath.row with the total row number. If it is less than the total row number, then it should be allow the move. Otherwise, it will not.

```
- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)sourceIndexPath toIndexPath:(NSIndexPath *)destinationIndexPath
{
NSLog(@"%d, %d", destinationIndexPath.row, [[[BNRItemsStore sharedStore] allItems] count]);
if (destinationIndexPath.row < [[[BNRItemsStore sharedStore] allItems] count]) {
[[BNRItemsStore sharedStore] moveItemAtIndex:sourceIndexPath.row toIndex:destinationIndexPath.row];
}
}
```

I use NSLog to print the destinationIndexPath.row and [[[BNRItemsStore sharedStore] allItems] count] value, even the previous one is equal to the second one but it still perform the move, which really confuses me.

Please let me know where I did wrong.

Thanks.