Sort by distance don't work

fix #4260: sort by distance doesn't work
Well, if you guarantee that it will never be used in this case (I don't know this part of the code very well), why not use `null` for the list indeed? But it would deserve a comment such as

```java
   // The singleton will never be used as a comparator because …
```

(and fill the "because" part)