sc pdf grey state and sorting