Make encoders to preserve an order of elements