Sorting model issu


Hi, I want to sort a list of users.

import Ember from 'ember';

export default Ember.Controller.extend({
    sortProperties: ['first_name:asc', 'last_name:asc'],
    sortedModel: Ember.computed.sort('model', 'sortProperties')
  1. Then I pass sortedModel to a component. The issue is that when I update a user the list is not actualized.

  2. I tried passing in the model directly and sort it in component, but in this situation my list contains only one user the logged user.

How should I proceed further? Thanks.