[minor] Use _getDatasetsInOrder rather than reimplementing