No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How to order a select by name?

    Help
    2
    2
    682
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      renzo last edited by

      Is there any way to order my select options by name (alphabetcly order)?

      1 Reply Last reply Reply Quote 0
      • M
        malmil last edited by

        You could probably sort your select options in created() like so:
        data() {
        return {
        selectOptions: [‘Banana’, ‘Orange’, ‘Apple’],
        }
        },
        created() {
        this.selectOptions.sort()
        }

        I don’t think it’s a built in way to sort in q-select

        1 Reply Last reply Reply Quote -1
        • First post
          Last post