sort-by : Sort objects by property names using native Array.sort(). You can installing sort-by npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.
$ sudo npm install sort-by $ sudo npm install -g sort-by
If want to update the sort-by package execute the command as below,
$ sudo npm update sort-by
Update package globally,
$ npm install -g sort-by
$ sudo git clone https://github.com/rektide/sort-by.git
$ sudo npm install -g ./sort-by
sort-by@1.2.0 /usr/lib/node_modules/sort-by
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall sort-by
| Package Name | sort-by |
| Version | 1.2.0 |
| Description | Sort objects by property names using native Array.sort() |
| Released Date | 2017-01-25T22:58:30.025Z |
| Published by | kvnneff |
| How to Learn | https://www.npmjs.com/package/sort-by/tutorial |