Really sorting by association column needs references, using order detect needed join, but not using reorder

This reverts commit 4060c8e9b108545952ff3e09ea1306f942359d11.
Use outer_joins instead of references, so every includes are not left joined only for sorting