angularjs orderby function question
Posted on 2014-11-19
I need a orderby function where if the usertype is a user, order by lastname, firstname. If it is a person, orderby lastname, firstname, if it is a entity orderby the label.
They have the same object called contact, and the userType field distinguishes between user, person, and entity. Also the order that it should show in is user, person, entity.