add sort for model instance