angular-ui/ui-grid

Descending sort does not work properly

Open

#6,725 opened on May 11, 2018

View on GitHub
 (1 comment) (1 reaction) (0 assignees)JavaScript (2,496 forks)batch import
help wanted

Repository metrics

Stars
 (5,395 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

When sorting on a column table column contains null values and using pagination, sorting in descending order does not work properly. When I choose a page size that shows all the values and sorting in descending order, the null values are shown at the top of the list. However, when I smaller page size (i.e. 25 or 50 per page), the data is sorting on the first page and that null values are spread between the last two pages (depending on number of data values). When sorting in ascending order, all the pages are sorted correctly (all null values are at the bottom).

Contributor guide