changed sort to be called with el, model, view