Person Data
Sorting Rules
- Contact arrays (
phones[],emails[],locations[],socials[]): current items first, then by quality - Experience & Education: current entries first, then by date (most recent first)
- Skills & Languages: alphabetical
Contact Data Arrays
Phones, Emails, Locations, Socials
These arrays prioritize current, high-quality items first. You can rely on the first item being the best available contact method. Example phone array:Experience & Education
These arrays place current entries first (current: true), followed by past entries sorted by date (most recent first). You can rely on experience[0] being the current or most recent job.
Skills & Languages
These arrays are sorted alphabetically by thecleaned value:
Company Data
Sorting Rules
legion_employee_count_by_month[]: reverse chronological (most recent month first)domains[],socials[],tickers[]: no guaranteed ordering
Company
socials[] do not include confidence, num_sources, last_seen, or current fields, so quality-based sorting does not apply. Person socials[] do include these fields and are sorted by current status and quality.Headcount History
Thelegion_employee_count_by_month[] array places the most recent month first:
Why Deterministic Ordering Matters
- Consistency: Same data always appears in the same order
- Predictability: You can rely on
experience[0]being the current job - Filtering: Easier to find primary contact methods
- Testing: Deterministic output makes testing and validation easier
Related Documentation
- Field Formats - Format specifications
- Person Schema Example - See person arrays in context
- Company Schema Example - See company arrays in context