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

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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Structures에 대해 자세히 알아보기

제품

릴리스

R2021a

태그

질문:

jkr
2021년 9월 28일

댓글:

jkr
2021년 9월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by