Chronological hierarchy of sorting in tables

Here’s how sorting works on Numbers, Apple’s spreadsheet program:

  1. Start with a simple table, where everything is displayed in the original order:

2X_6_63de5e99773ff3bdf3bbd0977c4a5cd06257042c.png

  1. Sort a part of the table. In this case, I sorted the Amount in descending order:

2X_d_de5c06508557395e06ce351d3cfc60ae02c675de.png

  1. Sort another part of the table. In this case, I sorted the Category in ascending order:

2X_d_dd678df68b47bac5c3926661b2fb8e61aea5cf00.png

Notice that, where the Category values are equal, the Amount values remain sorted in descending order.

In table view we can easily sort by tapping on the header at the top (if the headers are displayed). However, when we tap on another header, AppSheet seems to forget what it has just done and sorts the table as though a sort had not preceded it.

If it’s not too difficult (or too expensive in terms of computing power), I think it would be great if AppSheet’s table sort could remember preceding sorts in the manner I’ve described here.

Status Open
4 6 796
6 Comments
Aleksi
Staff

If it’s not too complicated to your user, you could that with the Usersettings

Kirk_Masden
Gold 1
Gold 1

Thanks @Aleksi! I should have mentioned that I looked at your sorting example:

www.appsheet.com/portfolio/531778

I can see how this use of the Usersettings can be helpful. However, it doesn’t seem to have the flexibility, ease of use, and intuitiveness of the kind of function I described above.

I am also aware that there are other ways to accomplish similar things. For example, here’s a great contribution by @GreenFlux:

2X_0_096603f4b7204d0ab7ed68efba584e905a7b0f64.gif

It might be possible to add the sorting order of a column or two to this kind of interface as well.

So, I understand that there are ways to accomplish similar things as the platform is constituted right now. It just seems to me that, from both the perspective of the app developer and the user, it would be a significant step forward in table sorting could be “cumulative,” instead of starting over with each tap.

Aleksi
Staff

Understood

Philip_Guin
Bronze 4
Bronze 4

Hey there, could y’all prioritize this? This feature is referred to as “stable sort” and is quite standard in the software world. Adding it is usually quite simple (just a change in sort algorithm) and would eliminate the need for multiple table views with groupings to effectively do the same. Think of all the unnecessary views we could delete!

I’m sure things get more complicated under the hood, but as a software dev exploring the form builder, this really seems like a critical feature. Google Sheets already supports it, where it is much appreciated.

Have a great day!

Kirk_Masden
Gold 1
Gold 1

Thanks! I wasn’t familiar with the term “stable sort.” I’m no longer able to edit this (I posted it quite a long time ago) but I wish I had used the term from the beginning.

Status changed to: Open
Pratyusha
Community Manager
Community Manager