1. add testSort
2. add PKey to PPreference and SPreference