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 custom sort

See original GitHub issue

I’m using my own sort function but i still want to use sortable option for each field because it’s adding a lot off accessible aria attributes and css. so my function is called with v-on:head-clicked="sort" but because the field is sortable: true the table get sorted twice. i tried adding no-provider-sorting but i don’t see any difference.

as you can see in this example: https://jsfiddle.net/yf1bokxm/ i’m trying NOT to sort items with no score. but having sortable: true on score field is ignoring my sort.

(here: https://jsfiddle.net/xsaLjuq0/ is working custom sorting when sortable is not set)

what else can i do?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
tmorehousecommented, Jan 2, 2019

You still have local sorting enabled, so you need to add no-local-sorting prop to your b-table to disable the internal sort routine

See https://bootstrap-vue.js.org/docs/components/table/#disable-local-sorting

0reactions
tmorehousecommented, Jan 6, 2019

Cool.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sort data using a custom list - Microsoft Support
Select the columns to sort. · In the ribbon, click Data > Sort. · In the Sort popup window, in the Sort by...
Read more >
Implementing Custom Sorting in Columns in JavaScript
This tutorial will describe how to give your users the ability to sort table columns using the MatTable's built-in sorting mechanism. Demo ...
Read more >
How to sort data by multiple columns in Excel | TechRepublic
In the Editing group (on the Home tab), click the Sort & Filter option, and choose Custom Sort from the dropdown list. If...
Read more >
Pivot Table Sorting Trick - Microsoft Tips and Codes
Custom Sort Columns in a Pivot Table · Open the excel file you want to sort and place your cursor in the top...
Read more >
Custom Sort - Logi Analytics
The Custom Sort dialog helps you to set the sorting manner of data displayed in the table or the sorting manner of groups...
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