projection and sorting work