Changes list to ordered