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

139
Views
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
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!