{"id":113,"date":"2016-07-02T11:50:32","date_gmt":"2016-07-02T06:50:32","guid":{"rendered":"http:\/\/wpreloaded.com\/?page_id=113"},"modified":"2018-04-30T16:35:19","modified_gmt":"2018-04-30T11:35:19","slug":"how-to","status":"publish","type":"page","link":"https:\/\/wpreloaded.com\/plugins\/table-sorter\/how-to\/","title":{"rendered":"How To"},"content":{"rendered":"<ul>\n<li><b>Multi-column sorting :<\/b> add &#8220;tablesorter&#8221; class to the required table<\/li>\n<li><b>Disable sorting from particular column :<\/b> add &#8220;sortless&#8221; class to the required TH column within THEAD tag.<\/li>\n<li><b>Sort multiple columns simultaneously<\/b> by holding down the shift key and clicking a second, third or even fourth column header!<\/li>\n<li><b>Cross-browser support :<\/b> IE 6.0+, FF 2+, Safari 2.0+, Opera 9.0+<\/li>\n<\/ul>\n<h2>Initial Sorting<\/h2>\n<p>You can add initial sorting by adding instructions in the CLASS attribute of the HTML table in the format:<br \/>\n{sortlist: [[columnIndex, sortDirection], &#8230; ]}<br \/>\nwhere columnIndex is a zero-based index for your columns left-to-right and sortDirection is 0 for Ascending and 1 for Descending. A valid argument that sorts ascending first by column 1 and then column 2 looks like: {sortlist: [[0,0],[1,0]]}<\/p>\n<p><strong>Example: <\/strong><code>&lt;table id=\"myTable\" class=\"tablesorter {sortlist: [[2,0]]}\"&gt; <\/code><\/p>\n<h2>Sort by date<\/h2>\n<p>To make your date columns sortable, add class <strong>dateFormat-dd\/mm\/yyyy<\/strong> in your Date column head. You can change date format according to your own need.<\/p>\n<p><strong>Example:<\/strong> <code>&lt;th class=\"dateFormat-dd\/mm\/yyyy\"&gt;Date&lt;\/th&gt;<\/code><\/p>\n<h3 class=\"title\">IMPORTANT<\/h3>\n<ol>\n<li><b>THEAD<\/b> and <b>TBODY<\/b> tags are compulsory in the desired table, otherwise this plugin will not work.<\/li>\n<li>Add <b><u>tablesorter<\/u><\/b> class in the desired <b>TABLE<\/b> tag.<\/li>\n<li>For column heading, use <b>TH<\/b> tag within <b>THEAD<\/b> tag.<\/li>\n<li>If you want to exclude a particular column, add <b><u>sortless<\/u><\/b> class to that <b>TH<\/b> tag.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/wpreloaded.com\/plugins\/table-sorter\/demo\"><button>Demo<\/button><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Multi-column sorting : add &#8220;tablesorter&#8221; class to the required table Disable sorting from particular column : add &#8220;sortless&#8221; class to the required TH column within THEAD tag. Sort multiple columns simultaneously by holding down the shift key and clicking a second, third or even fourth column header! Cross-browser support : IE 6.0+, FF 2+, Safari [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":109,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template-fullwidth.php","meta":{"om_disable_all_campaigns":false,"footnotes":""},"class_list":["post-113","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To - WP Reloaded<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wpreloaded.com\/plugins\/table-sorter\/how-to\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To - WP Reloaded\" \/>\n<meta property=\"og:description\" content=\"Multi-column sorting : add &#8220;tablesorter&#8221; class to the required table Disable sorting from particular column : add &#8220;sortless&#8221; class to the required TH column within THEAD tag. Sort multiple columns simultaneously by holding down the shift key and clicking a second, third or even fourth column header! Cross-browser support : IE 6.0+, FF 2+, Safari [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wpreloaded.com\/plugins\/table-sorter\/how-to\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Reloaded\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/web.facebook.com\/spiderteams\" \/>\n<meta property=\"article:modified_time\" content=\"2018-04-30T11:35:19+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wpreloaded.com\\\/plugins\\\/table-sorter\\\/how-to\\\/\",\"url\":\"https:\\\/\\\/wpreloaded.com\\\/plugins\\\/table-sorter\\\/how-to\\\/\",\"name\":\"How To - WP Reloaded\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wpreloaded.com\\\/#website\"},\"datePublished\":\"2016-07-02T06:50:32+00:00\",\"dateModified\":\"2018-04-30T11:35:19+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wpreloaded.com\\\/plugins\\\/table-sorter\\\/how-to\\\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wpreloaded.com\\\/plugins\\\/table-sorter\\\/how-to\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wpreloaded.com\\\/plugins\\\/table-sorter\\\/how-to\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/wpreloaded.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Plugins\",\"item\":\"https:\\\/\\\/wpreloaded.com\\\/plugins\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Table Sorter Plugin\",\"item\":\"https:\\\/\\\/wpreloaded.com\\\/plugins\\\/table-sorter\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How To\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wpreloaded.com\\\/#website\",\"url\":\"https:\\\/\\\/wpreloaded.com\\\/\",\"name\":\"WP Reloaded\",\"description\":\"Think beyond the limitations\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/wpreloaded.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To - WP Reloaded","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wpreloaded.com\/plugins\/table-sorter\/how-to\/","og_locale":"en_US","og_type":"article","og_title":"How To - WP Reloaded","og_description":"Multi-column sorting : add &#8220;tablesorter&#8221; class to the required table Disable sorting from particular column : add &#8220;sortless&#8221; class to the required TH column within THEAD tag. Sort multiple columns simultaneously by holding down the shift key and clicking a second, third or even fourth column header! Cross-browser support : IE 6.0+, FF 2+, Safari [&hellip;]","og_url":"https:\/\/wpreloaded.com\/plugins\/table-sorter\/how-to\/","og_site_name":"WP Reloaded","article_publisher":"https:\/\/web.facebook.com\/spiderteams","article_modified_time":"2018-04-30T11:35:19+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wpreloaded.com\/plugins\/table-sorter\/how-to\/","url":"https:\/\/wpreloaded.com\/plugins\/table-sorter\/how-to\/","name":"How To - WP Reloaded","isPartOf":{"@id":"https:\/\/wpreloaded.com\/#website"},"datePublished":"2016-07-02T06:50:32+00:00","dateModified":"2018-04-30T11:35:19+00:00","breadcrumb":{"@id":"https:\/\/wpreloaded.com\/plugins\/table-sorter\/how-to\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wpreloaded.com\/plugins\/table-sorter\/how-to\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wpreloaded.com\/plugins\/table-sorter\/how-to\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wpreloaded.com\/"},{"@type":"ListItem","position":2,"name":"Plugins","item":"https:\/\/wpreloaded.com\/plugins\/"},{"@type":"ListItem","position":3,"name":"Table Sorter Plugin","item":"https:\/\/wpreloaded.com\/plugins\/table-sorter\/"},{"@type":"ListItem","position":4,"name":"How To"}]},{"@type":"WebSite","@id":"https:\/\/wpreloaded.com\/#website","url":"https:\/\/wpreloaded.com\/","name":"WP Reloaded","description":"Think beyond the limitations","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wpreloaded.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"}]}},"_links":{"self":[{"href":"https:\/\/wpreloaded.com\/api\/wp\/v2\/pages\/113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpreloaded.com\/api\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wpreloaded.com\/api\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wpreloaded.com\/api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpreloaded.com\/api\/wp\/v2\/comments?post=113"}],"version-history":[{"count":6,"href":"https:\/\/wpreloaded.com\/api\/wp\/v2\/pages\/113\/revisions"}],"predecessor-version":[{"id":944,"href":"https:\/\/wpreloaded.com\/api\/wp\/v2\/pages\/113\/revisions\/944"}],"up":[{"embeddable":true,"href":"https:\/\/wpreloaded.com\/api\/wp\/v2\/pages\/109"}],"wp:attachment":[{"href":"https:\/\/wpreloaded.com\/api\/wp\/v2\/media?parent=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}