I only have the option to sort Global Status by Ascending or Decending order. How do I sort in either:
Custom selecting / sorting the data records in Global Status column (Similar to custom sort in excel)
or
Sort by the numercial order added in Global Status Order without needing to unnessasary pull the data into the Product table via a Virtual Column and sort by that instead.
I’m not sure if this is what you need but I wonder if simply using a table view with headers in AppSheet might not give you the capacity you are looking for. If you have headers in an AppSheet table, the user can choose the header to tap on to order the records by that column, and then tap again on the same column to reverse the order. Please see “How do I get headers to show?” in the following:
[Working with table view (Q&A)](https://community.appsheet.com/t/working-with-table-view-q-a/13925) Tips & Tricks ?
In this post I’d like to collate some information about how to work with table view. First of all, here’s what we have in documentation: The documentation explains that the “Table view shows information in a very compact way allowing you to quickly scroll to find a row” but, unfortunately, there’s no link to a detailed explanation regarding how to work with table view. I hope this “Tips & Tricks” post will constitute a temporary substitute for that documentation and that this post of mine w…
I familiar with sorting capabilities on the header and unfortunately that does not solve my issue. Sorting it this way still means that the data is sorted alphabetically, where as I needed it to be custom sorted to my specifications to help facilitate my users see relevant data 1st.
To give you an example of what I see in my app vs what I want.
I see. Thank you for explaining that. I’m afraid I don’t have enough knowledge to help. I hope someone else can. Perhaps @Aleksi, @Steve, or @LeventK.
@Michael_Pinto In general, Sorting can only be done with the data available to the sort function. So, if you cannot get the data sorted in the order you wish with the data you have, you will have to introduce data that allows the sort order you wish.
In your case, I would recommend assigning a Code value to the Global Status’s. In other words, a separate hidden column that has a value that you solely use for sorting.
I also recommend using values such as 10, 20, 30, etc rather than 1,2,3. If in the future you decide to add status’s that go between existing ones, then you only need to choose a sorting number value in between like 5, 15, 25, etc.
It appears you want the groupings sorted non-alphabetically in a table view. The only way to accomplish what you want is to prefix the group names with a number (or other prefix) that will sort as you want. For instance, make the group names literally1. Commercial, 2. Commercial Introduction, and 3. Commercial Delete, with the 1., 2., and 3. actually in the names.
Yes, @Steve is correct. I didn’t catch that you wanted the Groupings themselves sorted. Sorry about the confusion.
I have played with AppSheet trying to see if I can get Group Sorting accomplished some other way but there just isn’t. Many others have seen the same problem. I have opened the Feature Request below for it. It just needs attention from other developers to get it prioritized.
FYI, I focused on Ref columns in the Feature Request because if you are applying a custom sort for Group headings, you will likely want to do something like what i described above. The best way to manage that is in its own utility table and then Ref to it - not within your data tables.
[For Ref columns, Allow Grouping sort order to be based on a non-visual field - i.e. not by Label](https://community.appsheet.com/t/for-ref-columns-allow-grouping-sort-order-to-be-based-on-a-non-visual-field-i-e-not-by-label/15086) Feature Requests
There are many use cases where in a Grouped view, the developer wants to control the order in which the Groups are shown and not have it based on a ascending/descending sort of the displayed value. Currently, developers overcome this deficiency by changing the display value so that it includes characters that force the sort. e.g. “1-Group G”, “2-Group Z”, “3-Group A”. For Ref columns, a very practical approach would be to allow the specification of the column used for sorting just like we cu…
I’m having the same problem regarding how to customize my own sorting. But what I did, I make a virtual column name “Ref Sort” then use the switch formula.
In using formula Switch you can assigned value which will be used in your View Options.
Note: Virtual Column DataType must be in “Text”.
translating:
Switch([Source Column], “value1 in the column”, “character to replace value1”, “value2 in the column”, “character to replace value2”, …“Default”)
Then use the Virtual Column “Ref Sort” in view options “Sort By”
If you have a reference list already in the desired order, you can sort a different list containing some subset of the values in the reference list using INTERSECT():