extension ExtPose

HTML Table Auto Sort (delisted)

CRX id

bpgbkjehkeffmmjfmdlmjjlffgkdcljp-

Description from extension meta

Clicking on <th> tags reorders rows of an HTML table in ascending/descending order.

Image from store HTML Table Auto Sort
Description from store ### The Important Stuff ### When enabled, clicking on a table header ("<th>") will reorder the table based on the values belonging to that column of the table. Order is ascending/descending, click to toggle. ### Change Log ### 1.7: (Community Contribution!) Support tables without headers and use tbody 1.6: (Community Contribution!) Better handling of negative numbers 1.5: (Community Contribution!) State saved using chrome local storage, and columns can now be sorted independently 1.4: Added Alphanumeric sorting algorithm 1.3: minor bug fix 1.2: toggle asc/desc 1.1: removed jQuery dependency 1.0: initial upload ### Verbose ### Tables are clean and great for displaying information - when that information is ordered, at least. It is frustrating to search through a disorganized table, and not much better when the table is ordered using a bad index. Suppose I am looking through a contact list for a friend and the list is ordered by last name as opposed to first name. If I'm sitting there looking for his first name, I'm going to have a bad time. This extension changes all of that. Every single table posted online can now be easily resorted at the click of the mouse, just as it would in a spreadsheet. And best of all, this extension is open source! Feel free to fork and/or contribute. http://github.com/jchamet/html-table-sort

Latest reviews

  • (2021-04-05) Cam Blythe: Great! It's really useful for sorting Roblox developer products by price rather than the default ID sort.
  • (2021-01-15) Ethan M: I can't get it to work on SeekingAlpha: https://seekingalpha.com/account/portfolio/summary?portfolioId=ABC 😞
  • (2020-10-11) Yurika Mana: Not Work. Here's the table code. <table class="configurable-product-table cart items data table"> <thead> <tr class="first last"> <th class="qty attributes" position: relative; top: 0px;">Size</th> <th class="qty avaibility" position: relative; top: 0px;">Availability</th> <th class="qty unit" position: relative; top: 0px;">Unit Price</th> <th class="qty subtotal" position: relative; top: 0px;">Subtotal</th> <th class="qty" position: relative; top: 0px;">Qty</th> <th class="no-display hidden" position: relative; top: 0px;"></th> </tr> </thead> <tbody class="cart item"> <tr class="item-info" data-product-id="18683"> <td class="qty first-attr bss-swatch" attribute-code="at98_taglia" attribute-value="5211" attribute-id="307"> <input type="hidden" name="bss_super_attribute[0][307]" value="5211" class="swatch-attribute"> <div class="swatch-attribute at98_taglia" attribute-code="at98_taglia" attribute-id="307"><div class="swatch-attribute-options clearfix"><div class="swatch-option text" option-type="0" option-id="5211" option-label="38" option-tooltip-thumb="" option-tooltip-value="38">38</div></div></div></td> <td class="qty">1</td> <td class="qty"> <div>$47,855</div> <div class="unit-old">$68,363</div> </td> <td class="qty subtotal">$0.00</td> <td class="qty"> <input type="text" class="qty_att_product input-text qty validate-not-negative-number required-entry" id="super_group_qty_0" value="0" name="config_table_qty[0]" index="0"> <input type="hidden" class="unit-price" value="47855"> </td> <td class="no-display hidden"> <input type="hidden" value="" name="quote_item_id[0]"> </td> </tr> <tr class="item-info" data-product-id="18683"> <td colspan="100%" class="action"> </td> </tr> <tr class="item-info" data-product-id="18681"> <td class="qty first-attr bss-swatch" attribute-code="at98_taglia" attribute-value="5228" attribute-id="307"> <input type="hidden" name="bss_super_attribute[1][307]" value="5228" class="swatch-attribute"> <div class="swatch-attribute at98_taglia" attribute-code="at98_taglia" attribute-id="307"><div class="swatch-attribute-options clearfix"><div class="swatch-option text" option-type="0" option-id="5228" option-label="40" option-tooltip-thumb="" option-tooltip-value="40">40</div></div></div></td> <td class="qty">1</td> <td class="qty"> <div>$47,855</div> <div class="unit-old">$68,363</div> </td> <td class="qty subtotal">$0.00</td> <td class="qty"> <input type="text" class="qty_att_product input-text qty validate-not-negative-number required-entry" id="super_group_qty_1" value="0" name="config_table_qty[1]" index="1"> <input type="hidden" class="unit-price" value="47855"> </td> <td class="no-display hidden"> <input type="hidden" value="" name="quote_item_id[1]"> </td> </tr> <tr class="item-info" data-product-id="18686"> <td colspan="100%" class="action"> </td> </tr> </tbody> </table>
  • (2019-11-25) Erin T: This does not work on the tables I want to sort. I want to sort the list of Facebook posts made for a page under the page's "Insight" tab. There's no effect when I click on the title. When I inspect the element of the header, it is indeed using the "th" tag, but with a lot of class information within it. I'm bummed. I really need to be able to sort this.
  • (2019-07-24) chibuike ukegbu: doesn't sort any html table on any website for me
  • (2018-12-10) Judy Adams: hi just what i need for sorting the results on Ancestry; works perfectly. i actually prefer the firefox browser i was using tabletools2 for many years but now its gone and there is not another option i have found the tablesorter userscript on greasyfork but it just is not doing a good job. Anyway from what i read you might be able to port your app to firefox as they say that many chrome apps can easily be ported to them with a few small changes. would you please consider doing so you will have a lot of genealogists using ancestry via firefox extra happy. i have all ready posted a link to your app for chrome on an ancestry support page and would do the same if you port it to firefox. please
  • (2018-10-18) Working great for my work. Thank you very much
  • (2018-08-30) Ezekiel Yovel: Didn't sort properly - the order was all wrong (tried both ascending and descending) all was mixed up. Perhaps it doesn't sort lexicographicaly.
  • (2018-01-18) Pez Cuckow: Uncaught TypeError: Cannot read property 'innerHTML' of null at chrome-extension://bpgbkjehkeffmmjfmdlmjjlffgkdcljp/table-sort.js:22:41 at Array.sort (native) at HTMLTableCellElement.tableHeaders.item.onclick (chrome-extension://bpgbkjehkeffmmjfmdlmjjlffgkdcljp/table-sort.js:19:15)
  • (2017-07-13) Daveheardt: The extension works on most tables. I'd happily rated this extension with 5 stars if it wasn't taking out tr elements out of the tbody. This breaks the styling on a lot of tables and frankly - its annoying!
  • (2017-02-02) Andrew McQuerry: It does what is says it does. Would love some additional options... maybe a white-list or black-list for domain/url path
  • (2016-12-07) Kai Wa: hahah works so great. Thanks!
  • (2016-04-19) ONO OOGAMI: Does what it should do.
  • (2016-01-31) 이좘우: 이건 λŒ€λ°•μ΄μ•Ό μ •λ ¬ μ•ˆλ¨ΉνžˆλŠ” κ³³μ—μ„œλ„ μž˜λ˜λ„€!
  • (2015-05-25) Za Ka: Does not work on the website I need it.
  • (2015-01-19) Jake Forrester: Works great for sorting text, not so well for sorting numbers of varying length. It seems to sort integers as strings (ex: 1, 100, 1000, 2, 200, 2000, 3...)
  • (2014-07-10) Antoine Pourchet: Intuitive, easy to use, and it does the job!

Latest issues

  • (2019-01-23, v:1.6) Ons Platform: Please add a "re-check" button
    So some websites don't properly use th tags in their HTML which renders this extension useless. I tried using the developer tools to change the elements in the top row to <th> but the extension doesn't pick up on it, probably because the page was edited after initial load. Please add a "reload" or "re-check" button so we're able to manually edit the page to be compatible with this extension.
  • (2018-02-23, v:1.4) Sorting date in dd-mm-yyy format
    A lot of times I found data tables with date formatted as dd-mm-yyyy, in this case only the "dd" portion of date is sorted and the "mm-yyy" does not.
  • (2017-08-30, v:1.4) Rich Johnson: Proper sorting
    1. If first word in <th> is numeric, cast it to a numeric format, then sort - then sorting will be 1, 2, 3, ... 10, 11, 12, ... 100, 101, ... 1000 2. If certain regex matches occur, perform conversion FIRST to intended value before sort - then 897 KB is smaller than 1.04 mb, and 12 Gb - values would be 918528, 1090519, 12884901888 - after sorting, would display original value of 897 KB, etc 3. this is awesome! Love it!
  • (2017-07-13, v:1.4) Daveheardt: tr taken out of tbody
    On sorting the extension takes the tr elements out of the tbody which breaks the styling on so much pages
  • (2017-04-07, v:1.4) mixed alphanumeric values not sorted correctly
    I have the same problem as the guy before me. is there any way to correct this issue? I've got this sequence: 3-C3-8032331 20-C3-2032911 21-C4-2033114 1-D2-8040123 thank you
  • (2016-12-20, v:1.4) Offline usage
    I'd like to use it on html table stored in local files but it seems not to work in this scenario.
  • (2016-04-26, v:1.4) mixed alphanumeric values not sorted correctly
    This extension tries to guess the data type, but gets it wrong in cases where the data is alphanumeric or ambiguous. It guesses the data type of a column on a comparison by comparison basis instead of a column basis.
  • (2016-04-26, v:1.4) sort on textContent rather than innerHTML
    Hi, I noticed that you use innerHTML on line 22 in table-sort.js In my use case there are a-tags in the table, so the table is sorted according to the hidden content of those tags. For me this extension works better if I use textContent rather than innerHTML. Maybe somedody else could try this tweak and comment. Regards, Hugo
  • (2016-04-22, v:1.4) Jordan Hanna: Refresh
    On a table I'm working with, the webpage will already resort the data when you click on the column header, albeit it is quite slow. Is there a way to add an option to skip these page refreshes?
  • (2016-01-17, v:1.4) Salman Sadiq: local page sorting and Date sorting algo
    Hi, Nice useful plugin, but this should work on pages that are opened directly from hard drive, instead of online web pages only. Works on: www.mydomain.com/table.html Doesn't work on [mac]: file:///Users/user1/Desktop/table.html Doesn't work on [win]: file:///C:/Documents%20and%20Settings/user1/table.html if table has dates it doesn't sort them Thanks

Statistics

Installs
1,000 history
Category
Rating
3.5 (27 votes)
Last update / version
2020-01-13 / 1.7
Listing languages
en

Links