JavaScript library to reorder matrices
Clone or download
Latest commit 8e18dde Jul 24, 2018


Reorder.js is a JavaScript library for reordering matrices, i.e. either tables, graphs vertices, or parallel coordinates axes.

Want to learn more? See the wiki.


To help develop Reordering.js, you need to have Node.js and NPM installed. Once you have done that, run the following from the root directory of this repository to install the development dependencies:

make install


Thanks to Renaud Blanch for giving me his implementation of the 'Optimal Leaf Ordering' algorithm. He has improved it and the distribution is available as ordering.

I originally started this in order to add a reordering module to D3.js.

The project structure and Makefile is based on that of D3, so a big thank you goes to Mike Bostock for this.