originally, I thought my problem was with how I was using the setSort command:
$w("#orgDataset").setSort(wixData.sort().ascending("rank")
If I use this command on my dataset, I get repeated items in the repeater that is linked to this dataset. But then I went to the data collection that the dataset is linked to and played around with the sorting function on the Content Manager->Manage Content page. What I found was that when I set a sort, the total number of items displayed varies. Without any sort there are 80 items. When I add a sort on the "rank" field, the number decreases to 75. Or when I add a sort on the "state" field, the number decreases to 68. See screenshots below.
I'm hoping that the issues I'm seeing with this Content Manager sort is related to the problem I'm seeing with the setSort command.