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

  • Home
  • SEARCH
  • 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 8750175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:49:17+00:00 2026-06-13T12:49:17+00:00

I have seven columns and I would like to have them sort correctly, The

  • 0

I have seven columns and I would like to have them sort correctly,

The first column has numbers but it doesn’t order them the way I would like them to be ordered:

Example:
5016
502
5020
5023

where I would like it to sort like this:

Example:
502
5016
5020
5023

Now the 2nd column has a combination of numbers and letters
example is like above but has a letter in the front before each number
I would like to sort that by numbers, then by letters

Example:
441
B441
821
822
823
C823

or even like this would be OK

Example:
441
821
822
823
B441
C823

and finally,
the 3rd column is more complex it has a image before the words example is:
 Billy Jones
 Anna Walters
 Bob Smith
 Tom Henderson

All I want it to order by (names) letters…

Example:
<img src="img_tr122.png">&nbsp;Anna Walters
<img src="img_tr122.png">&nbsp;Billy Jones
<img src="img_tr122.png">&nbsp;Bob Smith
<img src="img_tr122.png">&nbsp;Tom Henderson

here is what I have in the JavaScript so far but I don’t know how to get everything to work..

<script type="text/javascript">
$(document).ready(function() { 
$.tablesorter.defaults.widgets = ['zebra']; 
    $("table").tablesorter({ 
        // pass the headers argument and assing a object 
        headers: { 
            // assign the third column (we start counting zero) 
            2: { 
                // disable sort because I don't know how to sort it correctly.
                sorter: false 
            },
            6: { 
                // disable sort for this (last) column because it is a menu only.
                sorter: false 
            } 
        } 
    }); 
});
</script>

PLEASE HELP….

THANKS!!!!

  • 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-06-13T12:49:19+00:00Added an answer on June 13, 2026 at 12:49 pm

    The original tablesorter (v2.0.5) doesn’t do alphanumeric sorting. But you can use my fork of tablesorter to sort your data using this code:

    $('table').tablesorter({
    
        // Add a theme
        theme : 'blue',
    
        // extract text from the table
        textExtraction: {
            2: function(node) {
                // move swap first and last name
                return $.trim($(node).text() || '').replace(/(\w+)\s(\w+)/g,'$2 $1');
            }
        },
    
        // include zebra and any other widgets:
        widgets: ['zebra', 'columns']
    
    });
    

    I wasn’t sure how you wanted to sort the last column. The textExtraction option contains code to sort the last column by last name first. If you want to sort by the first name, then just remove the entire option.

    Here is a demo of that code in action.

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

Sidebar

Related Questions

I have never programmed a gadget for Vista or Seven, but I would like
I have table that has a column of type DateTime, I would like to
I have an array which I would like to dump into a table, but
I would like your help with something that I have searched a lot but
I am having a HTML table with many rows. I have seven columns in
How would I create a DecimalFormat that would only have seven digits total and
Suppose I have a string like this: one two three four five six seven
This is my lame first attempt. I would like to get a count of
I have three columns that look something like this: Column1 Date1 Date2 Test2 2012-06-10
I have a large multidimensional array that I would like to store into a

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.