From 547933815aac7e5ea9130fd018e54b3274234bb8 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Fri, 22 Mar 2019 07:55:02 -0500 Subject: [PATCH] Docs: Update trigger sort page. See #1641 --- docs/example-trigger-sort.html | 33 ++++++++++++++++++++++++++------- docs/index.html | 2 +- 2 files changed, 27 insertions(+), 8 deletions(-) diff --git a/docs/example-trigger-sort.html b/docs/example-trigger-sort.html index 249d63b3..4e9e5149 100644 --- a/docs/example-trigger-sort.html +++ b/docs/example-trigger-sort.html @@ -69,6 +69,12 @@ return false; }); + // toggle the sort on the Last Name column v2.23! + $('#toggle-direct').click(function(){ + $.tablesorter.sortOn( $("#table2")[0].config, [ [1,"n"] ], function() { + console.log("done"); + }); + }); });