Skip to main content
All arrays in the output are sorted deterministically for consistency.

Person Data

Sorting Rules

  • phones[], emails[]: current items first, then by confidence (highest first)
  • locations[]: most recently seen first (by last_seen)
  • socials[]: current items first
  • experience[]: current entries first, then by start date (most recent first)
  • education[]: by start date, most recent first
  • Skills & Languages: alphabetical
  • Certifications: by issue date, most recent first

Contact Data Arrays

Phones, Emails, Locations, Socials

Phones and emails place current items first, then higher confidence, so you can rely on the first phone or email being the best available contact method. Locations are ordered by most recently seen (last_seen). Socials place current items first. Example phone array:

Experience & Education

Experience places current entries first (current: true), followed by past entries by start date (most recent first). You can rely on experience[0] being the current or most recent job. Education is sorted by start date, most recent first.

Skills & Languages

These arrays are sorted alphabetically by the cleaned value:

Certifications

Sorted by issue date, most recent first:

Company Data

Sorting Rules

  • legion_employee_count_by_month[]: chronological (oldest 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 place current items first.

Headcount History

The legion_employee_count_by_month[] array places the oldest month first:

Why Deterministic Ordering Matters

  1. Consistency: Same data always appears in the same order
  2. Predictability: You can rely on experience[0] being the current job
  3. Filtering: Easier to find primary contact methods
  4. Testing: Deterministic output makes testing and validation easier