什么是thenBy.js
thenBy.js是一个javascript微型库,它可以对多列的数组进行排序(且可以满足不同列按不同的升序或降序进行排序)。它使用原生JavaScript 的sort();方法,但不同的是thenBy.js可以传入多个函数例如firstBy().thenBy().thenBy()
组成的函数来对数组进行多列排序。
如何安装
1.使用npm或yarn安装
or
```yarn add thenby```
then in your app:
```var firstBy = require('thenby');```
or in TypeScript/ES6:
```import {firstBy} from "thenby";```
For a small demo of how TypeScript support looks in a good editor (i.e. VS Code), [check this short video](https://youtu.be/atJPa3AE4bM).
Thanks a lot to [bergus](https://github.com/bergus), [hagabaka](https://github.com/hagabaka), [infolyzer](https://github.com/infolyzer) and [Foxhoundn](https://github.co