Covalent: Incorrect Data Table Sort Order for Numeric Data

Created on 24 Oct 2016  路  5Comments  路  Source: Teradata/covalent

Bug Report

Data Table component does not sort numeric data correctly.
As seen here: https://teradata.github.io/covalent/#/components/data-table

Screenshots or link to CodePen/Plunker/JSfiddle

screen shot 2016-10-24 at 11 07 53 am

What is the expected behavior?

When sorting a numeric column, smaller number should come before larger number when sorted ascending and vice versa.

Hope this helps!

bug

Most helpful comment

Huh, its doing string sorting instead of numeric sorting.
Sorry we didnt notice this before, i will add this as a priority for this release.

Thanks for letting us know!

All 5 comments

Huh, its doing string sorting instead of numeric sorting.
Sorry we didnt notice this before, i will add this as a priority for this release.

Thanks for letting us know!

Fixed in https://github.com/Teradata/covalent/pull/128 while abstracting the local sort into TdDataTableService

Thank you!

i need some help about integrating covalent in ng2 manually

You can ask in our gitter channel for support questions or additional info.

https://gitter.im/Teradata/covalent

Was this page helpful?
0 / 5 - 0 ratings