Improve leptus_router:sort_path_rules/0