Fixed Stats to look at intance dataset to get dataset module methods instead of the instance to make sure the sort field is correct