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 Sort ] Table is sorted to default options when table is updated

See original GitHub issue

Hi @AllenFang,

I just saw this now. By default my table was sorted by name in ascending order and when I sort it by code or other columns it will sort properly.

But when the table is been updated it will sort again by the default column name.

kc0onr8yt2

By default i have an options inside my render:

render() {
    let options = {
      sortName: 'name',
      sortOrder: 'asc'
    }
    return (
      <BootstrapTable data={ items} options={ options } striped={true} hover={true} ref='rbsTable'>
      ...
      </BootstrapTable>
    )

What happen when I click on the gear icon is I’ll fetch the sub menus of each item from the server.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:21 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
devken-netcommented, Apr 13, 2016

@AllenFang cool! Thanks for this! I’ll try to implement this next week.

1reaction
AllenFangcommented, Apr 1, 2016

@markortiz, release on v2.1.1. Check it out 😃

If the problems still remain, please tell me, thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sort data in a table - Microsoft Support
Sort the table. Select a cell within the data. Select Home > Sort & Filter. Sort&Filter. Or, select Data > Sort. DATA-Sort&Filter. Select...
Read more >
SQL best practice to deal with default sort order - Stack Overflow
There is no default sort order. Even if the table has a clustered index, you are not guaranteed to get the results in...
Read more >
Configuring the default Results Table sort order and summary ...
To add a new sort rule, click +Sort Rule. · To change the column assigned to a sort rule, click the arrow next...
Read more >
Can you keep a sort on a column for a table?
You can sort the table wrapped with Table Filter macro in page edit mode by Ctrl+Click on table heading. After you save the...
Read more >
Default ordering (sorting) - DataTables example
With DataTables you can alter the ordering characteristics of the table at initialisation time. Using the order initialisation parameter, you can set the ......
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