Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

312
Vistas
Sort List of Objects in Java

I have 6 list of Objects in Java with a data structure like this:

Class MyObj {
    int identifier;
    Class someOtherClass;
}

Every List in the 6 Lists is a List<MyObj>.

I want to build a final list which does merge sort while reading all the 6 lists and prepare a final list.

I believe Merge Sort or similar solution is the way to go. I looked at comparator example as well but could not find one matching my requirements. Can someone suggest a library or existing API that can help me accomplish this task?

I also found a solution at How to Sort a List<T> by a property in the object but it does inArray sort, it does not tke account of multiple Lists.

All 6 Lists are already Sorted, I need combined sorted List

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda