Cleaning up ordered list