Ascending vs Descending Order

2X_c_cb809c94d6bc9ac47d21b3d0277e77593218a5e5.png

[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 Solved
0 20 632
  • UX
1 ACCEPTED 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.

View solution in original post

20 REPLIES 20

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,

@Aleksi

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.

2X_5_5aaa03483d4adcb5d8f5af51827745f449d5f802.png

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.

2X_d_defa5cc745852fa7a5165356722cbc0a7d3550e1.png

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.

Top Labels in this Space