Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6105751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:00:18+00:00 2026-05-23T14:00:18+00:00

I am using the jQuery tablesorter plugin . I know how to disable sorting

  • 0

I am using the jQuery tablesorter plugin. I know how to disable sorting on a column by using the jQuery Metadata plugin:

<th class="{sorter: false}">Don't sort me</th>

But I would rather do this by setting a class, so I don’t have to use an additional plugin. Also I think I would remember the class name easier than remembering this JSON syntax. How can I do the same same thing using this syntax:

<th class="not-sortable">Don't sort me</th>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:00:18+00:00Added an answer on May 23, 2026 at 2:00 pm

    I think the only way to get this to work is modifying the source code of the plugin.

    At jquery.tablesorter.js, Line 483:

    function checkHeaderMetadata(cell) {
       if (($.metadata) && ($(cell).metadata().sorter === false)) {
           return true;
       };
       return false;
    }
    

    Change this code to:

    function checkHeaderMetadata(cell) {
       if ((($.metadata) && ($(cell).metadata().sorter === false)) || $(cell).hasClass("not-sortable")) {
           return true;
       };
       return false;
    }
    

    Now the function checkHeaderMetadata is also returning true, if the cell has a class named not-sortable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the Tablesorter Jquery plugin to sort a table, but the images background
I am using the jquery tablesorter plugin to sort a table. On of my
I'm using the tablesorter( http://tablesorter.com ) jquery plugin to sort table data... Does anyone
am using jquery tablesorter plugin and in my country column i got special characters
I am using the jQuery Tablesorter 2.0 plugin to provide some basic table sorting
I am using the jQuery tableSorter plugin on a page. Unfortunatley, the table that
I am using the jquery tablesorter plugin and applies it to a table with
I have a table that I've made sortable using the jQuery plugin Tablesorter 2.0
I am using the tablesorter plugin: http://tablesorter.com/docs/ with jquery 1.4.2 Now my problem is
I am using the jQuery tablesorter plugin . It seems to be working fine

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.