added initial 2 types of sort.