_window doesn't exist here
It's null by default
Sort entityList by distance