ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Sorting doesn't work correctly on Chrome when the grid uses grouping on a column with type 'number'

Open jabas06 opened this issue 10 years ago • 5 comments

Hi,

I'm retrieving an integer column from an ajax request, and I want to use 'number' sorting on that column, so I define the column explicitly as 'number' type. The sorting works until I add grouping on the same column. The issue is only present on Chrome. IE has no problem.

I provide a plnkr to show the issue. http://plnkr.co/edit/E12WguUoTmWvlJ1kA4db?p=preview

IE - working image

Chrome - not working

image

jabas06 avatar Jun 04 '16 04:06 jabas06

The grid tries to sort the rendered value (string) with the sortNumber alghoritm

nickxbs avatar Jun 08 '16 07:06 nickxbs

very strange because sorting seems to affected by the grouping. I would say this is a bug.

bjaraujo avatar Jun 08 '16 09:06 bjaraujo

Yes https://github.com/angular-ui/ui-grid/issues/4778

nickxbs avatar Jun 10 '16 06:06 nickxbs

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 23 '18 04:05 stale[bot]

This issue has been automatically closed because it has not had recent activity. If you believe that this is still an issue in the latest version, feel free to re-open it. Thank you for your contributions.

stale[bot] avatar Jun 22 '18 05:06 stale[bot]