Sorry should have mentioned, the only reason I defined a custom sort-by in the twiddle was because it seemed like the easiest way to use that helper (i literally just copied/pasted it from ember-composable-helpers so it should be the exact same thing). The template I showed above is really the only important part (as well as making sure the sort has a valid default initial value). All you should have to do is make the first arg you pass to
sort-by a bound value, like i did in the twiddle (in that case I used
this.sort. It could either be a regular property or a computed property (might be easier to handle the asc/desc case as a computed property). So in the twiddle I’m binding either “lastName” or “firstName” to
this.sort which changes how the helper computes the sorted results.
Does that make more sense?