Added mechanism for ordering encodings