2.0.0 • Published 6 years ago

@cryptosheet/sort-by-property v2.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

@cryptosheet/sort-by-property

sort an array by multiple properties. the order of the properties defines the precedence.

Usage

const sortByProperty = require('@cryptosheet/sort-by-property')
const transactions = [{
  created_at: '...',
  exchange: 'coinbase',
  currencyPair: 'ltc-eur'
}, {
  created_at: '...',
  exchange: 'coinbase',
  currencyPair: 'ltc-eur'
}]

transactions.sort(sortByProperty('created_at', 'exchange', 'currencyPair'))
2.0.0

6 years ago

1.0.0

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.4

6 years ago