The analysis of residential sorting trends