Better method for sorting properties from a model