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.

Sorting doesn't work with remote

See original GitHub issue

I use remote={true} and in this case sorting doesn’t work, in onSortChange, I always get name + desc and see dropup and dropdown icons SortOrder couldn’t change when I click Without remote it works well.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
anuragb26commented, Jan 18, 2019

kopaygorodsky , i am facing the exact same issue,getting order as ‘desc’ always,Could you please describe your fix.

<BootstrapTable
    remote
    keyField={'id'}
    bootstrap4
    classes={'mt-3'}
    rowClasses={'table__row'}
    headerClasses={'table__header'}
    bordered={false}
    data={data}
    columns={columns}
    pagination={ paginationFactory(paginationOptions) }
    onTableChange={ onTableChange }
  />
)

In onTableChange, i always get desc and both carets are always visible.

0reactions
kopaygorodskycommented, Feb 11, 2021

I reopened the issue because of multiple complaints. I don’t remember why it was happening, but seems it wasn’t only me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sorting not working in a Powershell function - Stack Overflow
PowerShell's command invocation syntax expects you to pass arguments separated by whitespace, not a comma-separated list. Change:
Read more >
Sorting doesn't work - Microsoft Community
Open Microsoft Windows Settings. Click Apps to open the Apps & features window. Find and click your Microsoft application in the list. Select ......
Read more >
DataGrid - Sorting by Name fails when using ...
Hi all, I saw that sorting is not set on our datagrids and debugged what could ... remoteOperations and when remote sorting is...
Read more >
Default ordering (sorting) - DataTables example
The order parameter is an array of arrays where the first value of the inner array is the column to order on, and...
Read more >
Sorting and ordering issue lists - GitLab Docs
When you sort by Label priority, the issue list changes to sort descending. Issues with the highest priority label are first, then all...
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