我有以下可能的地址作为字符串(未排序):
"road 21"
"road 1"
"road 186"
"road +21 / 23"
"road +21 / 19"
"another road 21"
"another road 1"
我希望您能将它们按照我指定的方式进行排序(不要使用默认的字符串排序方式):
another road 1
another road 21
road 1
road 21
road +21 / 19
road +21 / 23
road 186
我该怎么做呢?我可能需要使用自定义比较器,但是我应该如何分割字符串?