Skip to content

Commit e98edb2

Browse files
committed
docs: update anywidget_mode notebook with multi-column sorting instructions
1 parent 50bee9c commit e98edb2

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

notebooks/dataframes/anywidget_mode.ipynb

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"**Key features:**\n",
5151
"- **Rich DataFrames & Series:** Both DataFrames and Series are displayed as interactive widgets.\n",
5252
"- **Pagination:** Navigate through large datasets page by page without overwhelming the output.\n",
53-
"- **Column Sorting:** Click column headers to toggle between ascending, descending, and unsorted views.\n",
53+
"- **Column Sorting:** Click column headers to toggle between ascending, descending, and unsorted views. Use **Shift + Click** to sort by multiple columns.",
5454
"- **Column Resizing:** Drag the dividers between column headers to adjust their width."
5555
]
5656
},
@@ -489,13 +489,20 @@
489489
"id": "sorting-intro",
490490
"metadata": {},
491491
"source": [
492-
"### Sorting by Single-Column\n",
492+
"### Sorting by Column(s)\n",
493493
"You can sort the table by clicking on the headers of columns that have orderable data types (like numbers, strings, and dates). Non-orderable columns (like arrays or structs) do not have sorting controls.\n",
494494
"\n",
495-
"**Sorting indicators (▲, ▼) are always visible for sorted columns. The unsorted indicator (●) is only visible when you hover over an unsorted column header.** The sorting control cycles through three states:\n",
495+
"#### Single-Column Sorting\n",
496+
"The sorting control cycles through three states:\n",
496497
"- **Unsorted (no indicator by default, ● on hover):** The default state. Click the header to sort in ascending order.\n",
497498
"- **Ascending (▲):** The data is sorted from smallest to largest. Click again to sort in descending order.\n",
498-
"- **Descending (▼):** The data is sorted from largest to smallest. Click again to return to the unsorted state."
499+
"- **Descending (▼):** The data is sorted from largest to smallest. Click again to return to the unsorted state.\n",
500+
"\n",
501+
"#### Multi-Column Sorting\n",
502+
"You can sort by multiple columns to further refine your view:\n",
503+
"- **Shift + Click:** Hold the `Shift` key while clicking additional column headers to add them to the sort order. \n",
504+
"- Each column in a multi-sort also cycles through the three states (Ascending, Descending, Unsorted).\n",
505+
"- **Indicator visibility:** Sorting indicators (▲, ▼) are always visible for all columns currently included in the sort. The unsorted indicator (●) is only visible when you hover over an unsorted column header."
499506
]
500507
},
501508
{

0 commit comments

Comments
 (0)