It would be based on the ordering of your organizations logic within the 'marketing channel processing rules'. Most organizations would have natural search before referrers before direct, but the placement depends on that ordering (as well as if a referrer was still available).