Tweak sort criteria for ranking api