# sortobj **Repository Path**: mirrors_alsotang/sortobj ## Basic Information - **Project Name**: sortobj - **Description**: I can sort Object in JavaScript - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-23 - **Last Updated**: 2026-07-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # sortobj [![Build Status](https://travis-ci.org/alsotang/sortobj.png?branch=master)](https://travis-ci.org/alsotang/sortobj) Convert Object to corresponding sorted-key Array. ## Installation ```shell $ npm install sortobj ``` ## Examples ```js var sortobj = require('sortobj'); obj = {b: {z: 1, y: 2}, c: 3, a: 1}; arr = [['a', 1], ['b', [['y', 2], ['z', 1]]], ['c', 3]]; sortobj(obj).should.eql(arr); ```