add Regiester code for sort iterator.
Merge branch 'scdong_master'