FBKin: refactoring
SortLib: Sp1 event out of border bug fixed.