@nicolawealth/entries_ordered_by_key
v0.0.2
Published
  and entitiesOrderedByKeyReversed(entries) where entries is of the type [key, value][] i.e. is an array of key-value pair objects.
Here key is a string value. entitiesOrderedByKey(entries) will sort entries by lexicographical ordering and entitiesOrderedByKeyReversed(entries) will sort entries by reverse lexicographical ordering.
Testing
Tests can be found in entries_ordered_by_key.test.ts located in entries_ordered_by_key/src and should be run with sinon, mocha and nyc.
