change sorting to use new _get_ranking method