Tree-based Ranking Rules