# datatables.net-colreorder

> ColReorder for DataTables

Latest version **3.1.2** (published 2026-09-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install datatables.net-colreorder
pnpm add datatables.net-colreorder
yarn add datatables.net-colreorder
bun add datatables.net-colreorder
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.1.2 |
| Published | 2026-09-25 |
| First published | 2015-10-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 104.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | SpryMedia Ltd |
| Maintainers | datatables |
| Keywords | ColReorder, Reorder, Datatables, table, filter, sort |

## Links

- npm: https://www.npmjs.com/package/datatables.net-colreorder
- Repository: https://github.com/DataTables/ColReorder
- Homepage: https://datatables.net
- Issues: https://datatables.net/forums
- npm.io page: https://npm.io/package/datatables.net-colreorder

## Dependencies (1)

- [datatables.net](https://npm.io/package/datatables.net.md) ^3.1

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 3.1.2 (latest) — 2026-09-25
- 3.0.0-beta.1 (beta) — 2026-04-07
- 1.7.2 (dt1-compat) — 2024-02-16
- 3.1.1 — 2026-09-22
- 3.1.0 — 2026-09-22
- 3.0.2 — 2026-09-11
- 3.0.1 — 2026-08-18
- 3.0.0 — 2026-07-24
- 2.1.2 — 2025-10-10
- 2.1.1 — 2025-05-30
- 2.1.0 — 2025-05-05
- 2.0.4 — 2024-08-14
- 2.0.3 — 2024-05-28
- 2.0.2 — 2024-05-07
- 2.0.1 — 2024-04-12
- … 20 more at https://npm.io/package/datatables.net-colreorder/versions

## README

# ColReorder

ColReorder adds the ability for the end user to click and drag column headers to reorder a table as they see fit, to DataTables. See the [documentation](http://datatables.net/extensions/colreorder/) for full details.


# Installation

To use ColReorder the primary way to obtain the software is to use the [DataTables downloader](//datatables.net/download). You can also include the individual files from the [DataTables CDN](//cdn.datatables.net). See the [documentation](http://datatables.net/extensions/colreorder/) for full details.

## NPM and Bower

If you prefer to use a package manager such as NPM or Bower, distribution repositories are available with software built from this repository under the name `datatables.net-colreorder`. Styling packages for Bootstrap, Foundation and other styling libraries are also available by adding a suffix to the package name.

Please see the DataTables [NPM](//datatables.net/download/npm) and [Bower](//datatables.net/download/bower) installation pages for further information. The [DataTables installation manual](//datatables.net/manual/installation) also has details on how to use package managers with DataTables.


# Basic usage

ColReorder is initialised using the `colReorder` option in the DataTables constructor - a simple boolean `true` will enable the feature. Further options can be specified using this option as an object - see the documentation for details.

Example:

```js
$(document).ready( function () {
    $('#myTable').DataTable( {
    	colReorder: true
    } );
} );
```


# Documentation / support

* [Documentation](https://datatables.net/extensions/colreorder/)
* [DataTables support forums](http://datatables.net/forums)

---
_Source: https://npm.io/package/datatables.net-colreorder · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
