minor bug fix when sortig with respect related model fields with missing value