Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

123
Views
Sort array in JS which contsist of another date arrays by first value

How I can sort an array by the first value. Below is the array example

[
    [
        14th Aug,
        8th Aug,
    ],
    [
        8th Aug,
        22th Aug,
    ],
    [
        6th Aug,
        14th Aug,
    ] 
]

As result, I need to get a new array such as

[
   [
        6th Aug,
        14th Aug,
    ],
    [
        8th Aug,
        22th Aug,
    ],
    [
        14th Aug,
        8th Aug,
    ] 
]

So only the first value must be taken into account for sorting

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!