decode

Returns a valid DocumentSortByEnum for data, null otherwise.