reorder the elements of list in perticular order.