I am currently working on DataGrid Component from Material-UI. Data can be displayed, but the inbuilt sorting is not working as expected. When I try to sort ASC/DESC it is sorting based on the first digit of the number. Please look into the picture below:

I have tried the same with fake API in CodeSandbox. It is working fine but in my application the sorting is acting different.
Then I have tried to add sortModel (followed Material-UI Sorting docs) still it is acting the same. I haven't been able to find a solution in the docs.
const sortModel = [{ field: "canaryDeviceId", sort: "asc" }];
<div style={{ height: "90%", width: "100%" }}>
<DataGrid sortModel={sortModel} rows={rows} columns={columns} />
</div>