question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Table not sorting

See original GitHub issue

I’m struggling to make my b-table sortable Not sure what i’m doing wrong

I use : “vue”: “^3.2.13”

“bootstrap-vue-3”: “^0.1.6”

Also, does it support filter and pagination ?

This is my vue for now

<template>
  <div class="overview">
    <b-table
        sort-by="status" sortDesc
        :items="items"
        :fields="formFields.licences"
    >
    </b-table>
  </div>
</template>

<script>

export default {
  name: "licences.vue",
  data(){
    return {
      formFields: {
        licences: [
          {key: "name", sortable: true,  label: "Name"},
          {key: "status", sortable: true, label: "Status"},
        ],
      },
      items: [
        { name: "Jack", status: "Used" },
        {name: "Frank", status: "Unused"},
        {name: "Larry", status: "Used" }
      ]
      }
  }
}
</script>

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:20 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
devhuscommented, Aug 31, 2022

with a bit of change to support vue3.

In that case, would you mind writing a note here about any changes that differ from BV, and it will be used when the docs for that component are expanded?

I think i do that in all of my PR

1reaction
VividLemoncommented, Aug 31, 2022

@devhus can you look into this? It seems an addition you may have made has subsequently broken the sort feature

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sort not working the way its supposed to. - Microsoft Community
If it looks like the data did not sort properly, refer to the following list of possible solutions: ... Make sure no hidden...
Read more >
Table not sorting stats properly - WordPress.org
I noticed multiple things wrong with the table sorting. It does not properly sort numbers that are over 999. If you check the...
Read more >
Solved: Table.Sort --- not sorting correctly
So I want to sort a table by two columns and then I will remove duplicate so keeping the top most one of...
Read more >
Table columns not sorting in Confluence - Atlassian Community
Solved: Table columns not sorting in Confluence. The table columns were sortable few hours back . Tried many options by googling.
Read more >
Nothing Happens when Sorting Text Table
You can see that I'm trying to sort the "ARR" column but the values are clearly not sorted from smallest to largest. Screen+Shot+2017-12-20+at+1.34.41+....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found