# sortkeys

> Sort the keys of an object recursively

Latest version **1.0.1** (published 2015-06-16) · 0 weekly downloads

## Install

```sh
npm install sortkeys
pnpm add sortkeys
yarn add sortkeys
bun add sortkeys
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2015-06-16 |
| First published | 2012-06-26 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Dan VerWeire |
| Maintainers | wankdanker |

## Links

- npm: https://www.npmjs.com/package/sortkeys
- Repository: https://github.com/wankdanker/sortkeys
- Issues: https://github.com/wankdanker/sortkeys/issues
- npm.io page: https://npm.io/package/sortkeys

## Recent versions

- 1.0.1 (latest) — 2015-06-16
- 1.0.0 — 2015-06-16
- 0.2.0 — 2012-11-19
- 0.1.1 — 2012-06-26

## README

sortkeys
--------

[![Build Status](https://travis-ci.org/wankdanker/sortkeys.svg)](https://travis-ci.org/wankdanker/sortkeys)

This function recursively sorts the keys of an object according to `Object.keys(obj).sort().`

An example should explain it:

```javascript

var sortkeys = require('sortkeys');

var objToSort = {
  d : "is for dog"
  , c : "is for cat"
  , f : "is for fig"
  , a : "is for ant"
};

console.log(sortkeys(objToSort));

/*
{ a: 'is for ant',
  c: 'is for cat',
  d: 'is for dog',
  f: 'is for fig' }
*/
```

license
-------

MIT

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