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 件のコメント

Walter Roberson
Walter Roberson 2021 年 9 月 28 日
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 ?
jkr
jkr 2021 年 9 月 28 日
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.
Image Analyst
Image Analyst 2021 年 9 月 28 日
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.
Adam Danz
Adam Danz 2021 年 9 月 28 日
@jkr are you referring to a UITable? If so, how did you add the sorting option?
jkr
jkr 2021 年 9 月 28 日
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 ExchangeShifting and Sorting Matrices についてさらに検索

製品

リリース

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