[1st Picture] I have a simple table containing a column named โGoneโ. The column keeps 2 possible words; โNoโ and โGoneโ.
[2nd Picture] In UX, setting โSort byโ in โAscendingโ order makes โNoโ come before โGoneโ.
[3rd Picture] โDescendingโ order makes โGoneโ come before โNoโ.
Why are they upside-down?
Regards,
Solved! Go to Solution.
I tested more deeply and it seems that if the option โUse other valuesโ is not set as ON, it will follow the Enum fieldโs option called โValuesโ. Now when you have them as an order No > Gone and that option is set as OFF, this will happen.
Interesting, if I change โNoโ to โNotโ, AppSheet sorts โNotโ and then โGoneโ correctly. However, โNoโ are still down below.
It sounds that the view is trying to be clever and using โNoโ as FALSE. What column type are you using?
Type is โEnumโ.
Base Type is โTextโ
Regards,
Please check that your column type in the spreadsheet is set as โPlain textโ. Now itโs probably set as โAutoโ.
I just changed it to โPlain textโ as your suggestion. However, it does not help.
Regards,
And you synced after that change?
To make sure the entire format changing. I did,
-Change column format from โAutomaticโ to โPlain textโ.
-Copy all data in the column to a new file using โPaste values onlyโ.
-Delete all data in the column.
-Copy all data from the new file back to the column using โPaste values onlyโ.
-Open new tab in Chrome and open AppSheet editor.
Nothing changed.
Regards,
I suspect your column name might be causing a problem. Whatโs happening when you change the column name like โGone?โ
The column name is already โGoneโ. And the word โGoneโ should not have anything to do with logical processing (it is not โYesโ โNoโ โTrueโ โFalseโ).
I thought the appsheet might be confusing something as the column name is used as well as value of the same column . So I just said you try to use the other field name . Just even add question mark to the end.
AppSheet interprets the first row to always be column name. This should not fool the AppSheet operation.
Okey I have no more words then.
Thanks for your advice. But changing column name may affect the app. So, I try to avoid this.
I tested exactly with your definitions and for me itโs working just fine.
This behavior is the same on both the Editorโs emulator & on my Android phone. I have to use โAscendingโ as work around.
Is it possible that you have changed the column name slightly and you havenโt changed the column from your View definition?
I donโt think so because I created the spreadsheet file with โGoneโ column since the beginning.
I think I found a clue. If I move the Values upside down to โGoneโ and then โNoโ, the view sorting is correct.
However, the sorting algorithm in AppSheet should not be depend on the order of the Value itself. It should rely on the content inside column, not the sequence of the list.
Regards,
I tested more deeply and it seems that if the option โUse other valuesโ is not set as ON, it will follow the Enum fieldโs option called โValuesโ. Now when you have them as an order No > Gone and that option is set as OFF, this will happen.
Thank you.
I finally choose to change โAllow other valuesโ to โONโ and keep the โInput modeโ as โButtonsโ to prevent users from adding any new options. Now I can use โDescendingโ which looks more rational.
However, itโs still weird anyway.
User | Count |
---|---|
15 | |
14 | |
8 | |
7 | |
4 |