2.0.0 • Published 7 years ago

@cryptosheet/sort-by-property v2.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
7 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

7 years ago

1.0.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.4

7 years ago