change sort set to map