Sorting
Hi -
We number tasks in our Smartsheet grid using the format XXX.X. When we sort in descending order, the numbers are not in order. For example 200.0 appears below 001.0. Since it is in descending order 200.0 should appear before 001.0.
We also want to start using four digits before the decimal point and want to know if the sort will confuse the order if we have a 001.0 and a 1000.0.
Best Answers
-
Hi @Liz_Snavely I believe this is because it is treating those beginning with 0 as text rather than numbers.
If you add a leading 0 to them all they do sort correctly.
Hope this helps!
John
-
Hi @Liz_Snavely,
Because of the leading zeros before I suspect that the "number" 001.0 is actually being stored as a string (text) and not a value (number). Sorting will not play well mixing values and strings, nor even strings by themselves unless you are wanting the alphabetical sort.
If it is important to appear that way, you could create a column to the right (hiding later if you like) that takes the VALUE() of this column and then sort by the new column.
Hope this helps!
Best,
Zach Hall
Training Delivery Manager / Charter Communications
Answers
-
Hi @Liz_Snavely I believe this is because it is treating those beginning with 0 as text rather than numbers.
If you add a leading 0 to them all they do sort correctly.
Hope this helps!
John
-
Hi @Liz_Snavely,
Because of the leading zeros before I suspect that the "number" 001.0 is actually being stored as a string (text) and not a value (number). Sorting will not play well mixing values and strings, nor even strings by themselves unless you are wanting the alphabetical sort.
If it is important to appear that way, you could create a column to the right (hiding later if you like) that takes the VALUE() of this column and then sort by the new column.
Hope this helps!
Best,
Zach Hall
Training Delivery Manager / Charter Communications
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives