The default just goes viably from left to right (or reversed if you shift it) on your field of view, without considering distance. It doesn't use the enemy list.
There's the cone option in your targeting option that icy_ had pointed out. Some people like it better.