Giter Site home page Giter Site logo

jchamet / html-table-sort Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 9.0 89 KB

Chrome Extension. Add it to your browser to use. Clicking on a table column header <th> will reorder the rows of an HTML table in ascending/descending order.

License: MIT License

JavaScript 100.00%

html-table-sort's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

html-table-sort's Issues

Problem with plugin and Wordpress admin

Wordpress: 3.5.3
Problem with all tables in Wordpress.

Wordpress has tags not only for the first row. The first cell of every row is and every last row also has tags.

That's why, somethings breaks up, if You are using Wordpress with enabled Table auto sort extension.

e.g. Open Posts > All posts
click on Any row to select:
image

result:
image

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.

Port HTML Table Auto Sort extension to Mozilla Firefox

Mozilla Firefox in 57 version release the WebExtension JavaScript API, that compatible with Chrome, so now will very easy to port most of Chrome extensions for Firefox.

Firefox at now very miss extension for sorting tables.

Can you lookup WebExtension API and port your extension to Firefox, if this is not so hard? Thanks!

Breaks website JS error

I had a page that loaded really poorly I discovered the following error. Disabling this extension resolved the issue.

table-sort.js:28 Uncaught TypeError: Cannot read property 'innerText' of null
    at table-sort.js:28
    at table-sort.js:52
    at Array.sort (<anonymous>)
    at stableSort (table-sort.js:51)
    at HTMLTableCellElement.tableHeaders.<computed>.onclick (table-sort.js:25)

website: https://www.ladwp.com/ladwp/

I would be happy to test any fixes for you.

Allow sort by number columns.

Good extension!

In my option, sort columns contain numbers by number order instead of string order should be most desired.
Such as "price", "size", "total"..., they may have units (can group by units first then sort).

No source code license or not obvious

At https://chrome.google.com/webstore/detail/html-table-auto-sort/bpgbkjehkeffmmjfmdlmjjlffgkdcljp the page claims that this extension is open source, and links to this repository to demonstrate this. The text there encourages forking/contributing - but under what license? MIT? GPL? CC0/WTFPL? You have no obligation to license the code - just publicly displaying it is great too, but if you want to grant rights beyond looking at it, you might want to consider one of the above licenses :).

gets rid of column span

See this table: https://www.rottentomatoes.com/top/bestofrt/top_100_science_fiction__fantasy_movies/
As soon as one clicks the columns get tighter together (look at the "100%" row, it seems there's only 0px of surrounding margin left).

Anyways thanks for creating this extension! I've been needing it for a long while.
Also, what do you think about adding a CI for continuous delivery (and to ensure us that the package we get really comes from here) such as this script: https://github.com/sindresorhus/refined-github/blob/master/.travis.yml ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.