Change data structure for keeping order.