Skip to content

  • Home
  • Random
  • Images
    • Art
    • Landscape
    • Wildlife
  • Audio
    • Delicatessen
    • Netslaves
    • Rathervague
  • Video
  • Tech
    • Gadgets
    • Linux
    • WebDev
Posted on 2018-07-302018-08-07 by Del Sozou

Table sorting

Great plugin for an existing table of data.

http://tablesorter.com/docs/

https://cdnjs.com/libraries/jquery.tablesorter

Force sort of digits

$(".table").tablesorter({
     headers: {
         5: { sorter: 'digit' } // column number, type
         6: { sorter: false } // disable it by setting the property sorter to false 		
     }
 });

or via HTML

<th class="{sorter: 'digit'}">Numbers</th>
CategoriesWebDev Tagsjavascript

Post navigation

Previous PostPrevious HTML Email
Next PostNext Copy text to a clipboard

Recent Posts

  • Simple webserver 2019-02-01
  • Webtrees Ubuntu Server 2019-01-01
  • Tomorrow’s World – 1984 2018-12-20
  • The Best of Peter O’Hanraha-hanrahan 2018-12-18
  • Commodore 64 Games Emulator 2018-10-10

Tags

  • 3D
  • Abstract
  • Agile
  • angular
  • angularJS
  • Blockchain
  • cat
  • charts
  • color
  • Comedy
  • CSS
  • delicatessen
  • Email
  • git
  • HTML
  • IDE
  • Inkscape
  • ionic
  • javascript
  • JQuery
  • Links
  • music
  • Nextstrain
  • python
  • react
  • Software
  • soundcloud
  • spider
  • statistics
  • Stock
  • TheDayToday
  • ubuntu
  • UX
  • VSCode
  • webtrees
  • wordpress
  • youtube
Proudly powered by WordPress