moved ascending created sorting into the remove duplicates generator to leave the sorting alone in all other cases