add sort to some models