<commit_before>
# sorter

  A sorter control for JavaScript (just a simple SVG up down arrow).

## Installation

    $ npm install sorter

## Guide

Creates a simple svg image with three states and appends it to each column:

![diagram of three states](http://i.imgur.com/2P2Z4.png)

```javascript
var sorter = require('sorter');

sorter('#table-id')
  .on('sort', function (table, columnHeader, direction) {<commit_msg>Add badges<commit_after>
# sorter

  A sorter control for JavaScript (just a simple SVG up down arrow).

[![Dependency Status](https://gemnasium.com/ForbesLindesay/sorter.png)](https://gemnasium.com/ForbesLindesay/sorter)
[![NPM version](https://badge.fury.io/js/sorter.png)](http://badge.fury.io/js/sorter)

## Installation

    $ npm install sorter

## Guide

Creates a simple svg image with three states and appends it to each column:

![diagram of three states](http://i.imgur.com/2P2Z4.png)

```javascript
var sorter = require('sorter');

sorter('#table-id')
  .on('sort', function (table, columnHeader, direction) {
{'fraction_non_alphanumeric': 0.14024975984630164, 'fraction_numerical': 0.005763688760806916, 'mean_word_length': 4.632432432432433, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '586622', 'n_tokens_mistral': 359, 'n_tokens_neox': 348, 'n_words': 99}