multiarr_sort_by_index
v1.0.2
Published
Sort multidimensional array by index
Downloads
1
Readme
This plugin helps you to sort the multidimensional array by index. There are three parameters:
- multidimensional array
- index of value with which the array should get sort(optional, default value is 0)
- callback(optional)
For eg.
var multiarr_sort = require('multiarr_sort_by_index'); multiarr_sort([[12, 1], [45, 76], [87, 23]], 1);