Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Click the date modified column to sort in ascending order
AddEvent("ColumnClick", function (Ctrl, iItem) {
var cColumns = api.CommandLineToArgv(Ctrl.Columns(1));
var s = cColumns[iItem * 2];
if (s == "System.DateModified" && Ctrl.SortColumn(1) !== "System.DateModified" && api.GetKeyState(VK_SHIFT) >= 0) {
Ctrl.SortColumn = "System.DateModified";
return S_OK;

This comment has been minimized.

Copy link
Owner Author

@tablacus tablacus commented Jul 12, 2020

Add-on "Run at setup"
Type: JScript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment