I've searched, but I couldn't find the answer to this. Let's assume I am travelling through space and I press "Scanner" in the cockpit. How are the ships appearing on my screen sorted?
If you're in a ship, your scanner will pick up other ships, and then any satellites or stations after that.
From there, ships appear to be organized from their coordinates, starting in the north-western territories, and working their way south-east from, there. If you'll look at your coordinates, it's not that hard to figure out.
Now, I could be wrong, but there's about a 73.41823% chance that I'm right this time.