Minimal weights issue in ranking

Please ignore post.