added sorting to people view