Sort by Type Button

Can someone explain how to create a button for "Sort by Type"? I know its in the view mode, but I would like to create a shortcut button to it.
Thank you for your time.

Here’s how: Shortcut for age - #2 by Leo

The button editor can find the right column name/keyword for you.

If you haven’t made a button before, check the menus at the top right of this forum page for instructions on making buttons to run commands.

thank you Leo!