running the sort multiple times.