Created
July 12, 2020 11:42
-
-
Save tablacus/deb006de90ba070289a6095ba43cbd6d to your computer and use it in GitHub Desktop.
Click the date modified column to sort in ascending order
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add-on "Run at setup"
Type: JScript