https://github.com/amarok24/table-sort
Demonstration of table data sorting in vanilla JavaScript.
https://github.com/amarok24/table-sort
javascript javascript-learning table-sort
Last synced: 4 months ago
JSON representation
Demonstration of table data sorting in vanilla JavaScript.
- Host: GitHub
- URL: https://github.com/amarok24/table-sort
- Owner: Amarok24
- License: mpl-2.0
- Created: 2020-08-03T15:40:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-04T15:26:00.000Z (over 5 years ago)
- Last Synced: 2025-02-16T07:41:25.251Z (12 months ago)
- Topics: javascript, javascript-learning, table-sort
- Language: JavaScript
- Homepage:
- Size: 87.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# table-sort
Demonstration of table data sorting in vanilla JavaScript.
* No dependencies, vanilla JavaScript + HTML5.
* It uses JavaScript modules so it won't work offline in a browser. Start a live-server or copy it directly to a server and open the index.htm file.
* Click on table headers to sort (ascending/descending).
* Click on any row of the table to instantly remove it from the list.
### Online demo
https://amarok24.github.io/table-sort/src/
***
SCREENSHOT
[see here](./tablesort.png)
TROUBLESHOOTING
You may get one of those errors in the browser console and the script won't run:
Loading module from “xxxxx/modules/xxxxx.mjs” was blocked because of a disallowed MIME type (“”).
Failed to load module script: The server responded with a non-JavaScript MIME type of "". Strict MIME type checking is enforced for module scripts per HTML spec.
In such cases the server does not know the MIME type of JavaScript modules. A simple renaming to .js (instead of .mjs) won't help. If you are running an Apache server put this into your .htaccess file:
```apache
RewriteEngine on
AddType text/javascript js mjs
```