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

    [Solved] QDataTable sort booleans

    Framework
    q-data-table sort
    2
    3
    659
    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.
    • Andreykauf
      Andreykauf last edited by Shone

      I have an issue with sort by boolean colums.

      I solved problem by changing default sort function shown here like this:

      if (typeof A === 'boolean' && typeof B === 'boolean') {
                return (( A === B ) ?  0  :  A ? -1 : 1) * dir
              }
      

      Am I alone with this issue?

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        Is your problem solved, or did you mean you tried to solve it?

        Scott

        1 Reply Last reply Reply Quote 0
        • Andreykauf
          Andreykauf last edited by

          My problem is solved for me.
          https://github.com/quasarframework/quasar/issues/2460
          Razvan said there is no problem here

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