fixed the multiple sort for collections.