Skip to content
This repository was archived by the owner on Jun 28, 2026. It is now read-only.
This repository was archived by the owner on Jun 28, 2026. It is now read-only.

DataTable sorting doesnt work with currencies #4879

Description

@thejoshualewis

Describe the bug

If a number is 123456 and another is 654321, 789, the sort works. If it contains any sort of comma/period, the sort does not work.

IE
$322
$1234.56
$6543.21

Sort works both ways.

However, with the same numbers with a ",", both backend api and frontend, does not sort., instead will sort to
$1,234.56
$3.22
$6,543.21

Reproducer

No response

PrimeReact version

9.6.2

React version

17.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution: By DesignThe behavior in the issue is by design and the component exhibits the expected behaviorResolution: WorkaroundIssue or pull request contains a workaround. It needs to be reviewed further by Core Team

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions