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

142
Vistas
How can I output an array in "popular" and "alphabetical" order?

     groupBrands: [
        {
          latter: "A",
          brands: [
            {
              id: 'ac',
              title: 'AC',
              image: ''
            },
            {
              id: 'acura',
              title: 'Acura',
              image: '/images/acura.svg'
            },
           
          ]
        },
        {
          latter: "B",
          brands: [
            {
              id: 'BAW',
              title: 'BAW',
              image: '/images/baw.svg'
            },
            {
              id: 'Bentley',
              title: 'Bentley',
              image: ''
            },
          ]
        },
]
      <ul>
          <li v-for="groupBrand in groupBrands"
              :key="groupBrand.latter"
              class="group"
          >
            <h3>{{ groupBrand.latter }}</h3>
            <ul>
              <li v-for="brand in groupBrand.brands"
                  :key="brand.title"
              >
                <label :for="brand.id">
                  <input
                      type="radio"
                      :id="brand.id"
                      name="brand"
                  >
                  <span>{{ brand.title }}</span>
                </label>
              </li>
            </ul>
          </li>
</ul>

How can I output an array in "popular" and "alphabetical" order? In this example, I show it in alphabetical order, but I do not know how to display the "popular" ones that have an image enter image description here

enter image description here

about 4 years ago · Juan Pablo Isaza
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