a new sort, changed some looping, etc.