npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

jquery-fake-table-sort

v1.0.1

Published

Sort tables formatted without table markup

Readme

Efficient table sorter

This jQuery plugin allows to sort data made with any markup, table or not.

Demo

jQuery fake table sort demo

Installation

From npm

npm install melicerte/jquery-fake-table-sort

Use directly in HTML:

<script
  src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
  integrity="sha256-k2WSCIexGzOj3Euiig+TlR8gA0EmPjuc79OEeY5L45g="
  crossorigin="anonymous"></script>

Include jQuery Fake Table Sort:

<script src="js/jquery.fakeTableSort.min.js"></script>

Prerequisites

jQuery >= 1.7.0

Usage

jQuery('.table-fake').fakeTableSortable();

With options

jQuery('.table-fake').fakeTableSortable({
    headerItems: 'div.table-fake-row-first > div',
    lineItems: 'div.table-fake-row',
    cellItems: 'div.table-fake-col',
    linesContainers: 'div.table-fake-row-container',
    firstSort: 'asc',
    sortMethods: ['lexicographical', 'lexicographical', 'lexicographical', 'number'],
    textConverter: [null, null, convertDateInterval, null]
});

headerItems : CSS selector to find headers cells in the fake table. Defaults to div.table-fake-row-first > div

lineItems : CSS selector to find content lines in the fake table. Defaults to div.table-fake-row

cellItems : CSS selector to find content cell in content lines Defaults to div.table-fake-col

linesContainer : CSS selector to find The HTML tag containing the rows. Defaults to null, rows are added after headerItems

firstSort : 'asc' or 'desc' : set first wanted order sort. Defaults to 'asc'.

sortMethods : Used to choose the sorting method. Can be either a string or an array. If it is string, the same sort method is used for every column. If it is an array, each value will be used for one column. You can use 'lexicographical' or 'number' sort. Defaults to "lexicographical"

textConverter : Used to convert cell content before comparing for sort. Can be either a function callback or an array of callback functions. If it is string, the text converter callback is used for every column. If it is an array, each callback will be used for its associated column. The callback function must take one argument value, the value to convert, and return the converted value. Defaults to null

Style

You can add style on links added on header items.

They have class fake-table-sorter, plus asc if next action is to sort asc, desc id next action is desc sort

Implementation details

This plugin uses the quicksort algorithm (Lomuto partition scheme).

Authors

  • Etienne Châtaignier - First release