fixed people sorting, list query optimization