appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[Bug]: Logic for ascending sort order on table column for number type dataset is incorrect

Open ramsaptami opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Description

Logic for ascending sort order on table column for number type dataset is incorrect

Steps To Reproduce

  1. Go to sample app attached and sort the order or the first column
  2. Observe that sorting happens based on the first digit and so it goes like, 1, 10, 11, 12.....2, 21, 22,....3, 31 and so on. Not 1, 2, ,3... and so on

Public Sample App

https://app.appsmith.com/applications/63b3ecd95b7acd601d97d319/pages/63b3ecd95b7acd601d97d339?pod=FE%20Coders%20Pod

Issue video log

https://www.loom.com/share/e214a65819784e189937fd0c7dd46ea5

Version

Cloud

ramsaptami avatar Jan 04 '23 08:01 ramsaptami

Affects end user directly, To a point sorting becomes useless. Setting as high.

somangshu avatar Jan 04 '23 10:01 somangshu

Hi @ramsaptami,

It seems to be performing a lexicographical sort on the id column value. Can you please change the column type from text to number, then it should sort the rows correctly.Screenshot 2023-01-05 at 3.34.29 PM.png

vsvamsi1 avatar Jan 05 '23 10:01 vsvamsi1