Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

141
Visualizações
How to using lodash to orderBy data which contains nested objdects which they need to have a specific sort

I'm having the following data in the snippet

CodeSandBox Snippet

What I need to achieve as I don't know is how I can sort/order that data in that way the siteId will be in ascending order and the nested object currents will be always following this order of the items inside

currents: {
        "PENDING_CALLCENTER": 1,
        "PENDING_SITE": 4,
        "CONSENTED": 1,
        "RANDOMIZED": 0,
        ...
} 

I have difficulties on how to sort/order the nested abject.

I was able as per snippet to orderBy but that affects the main OBJ how to make the order be as above inside the currents object that I don't know

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda