Changed Chaching and included sort in select