sort contacts and use model in contacts index controller