ember-composable-helpers icon indicating copy to clipboard operation
ember-composable-helpers copied to clipboard

Add sort and reverse-sort helpers

Open mwpastore opened this issue 6 years ago • 1 comments

Here is a first swag at adding (sort) and (reverse-sort) helpers. These simplified versions of the (sort-by) helper allow users to computed-sort arrays of values and not just arrays of objects. They use Ember.compare as the comparator and do not accept any additional arguments.

  • (reverse-sort)? (sort-reverse)? Something else?
  • Should it just be one (sort) helper with a reverse boolean argument?

mwpastore avatar Sep 27 '17 22:09 mwpastore

Hrrm, I didn't touch (previous) or (next) and yet their tests are failing for some reason(s). I experienced the same issue locally with ember try:one ember-release. Any suggestions?

mwpastore avatar Sep 27 '17 22:09 mwpastore