table sort now requires dialog to select ascending or descending order

As of R2021a, attempting to sort a table by a column now pops up a dialog to specify whether to sort in ascending or descending order.
This is a nuisance, requiring I find the dialog on my busy desktop. Formerly, clicking the sort down arrow sorted in one order or the other, and clicking it again sorted in the reverse order. Simple. Can I get that behavior back? I don't see where to control it.

6 Kommentare

sort() cannot be applied to table() objects -- it specifically errors out on line 224 of @tabular/tabular.m
Are you talking about GUIDE? Are you talking about App Designer ?
In a table, at the right of a column name, a down arrow is shown. I am describing what happens when clicking on it, not a function call.
Thanks for your attention.
Do you mean in the "Variables" panel, like what you get if you double click the variable in the workspace panel? Can you post a screenshot? Do you just want to sort via code rather than interactively?
data = randi(10, 5, 1);
T = table(data);
T
T = 5×1 table
data ____ 7 1 3 7 9
No down arrow is shown for the column name.
@jkr are you referring to a UITable? If so, how did you add the sorting option?
Yes to Image Analyst. Load the table into the workspace. Double click on the variable in the workspace, and it is displayed as a table. Hover the mouse pointer over any column head, and a down arrow is displayed. It is the behavior upon clicking this arrow that I am describing. The pop-up dialog shown in the screenshot below appears. It did not before. I have used this functionality for years.
Sorry I wasn't clearer.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Produkte

Version

R2021a

Tags

Gefragt:

jkr
am 28 Sep. 2021

Kommentiert:

jkr
am 28 Sep. 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by