unify code for substrings and arrange, after tokenizing
sort_substr(x, list_substr)vector of strings
list of substrings to match against and sort - the order in the list defines the resulting order in the string Should be names list - the names will be the codes to which the tokens will be matched against.
Other string matching functions:
getElem,
recodeye(),
set_codes(),
str_func_facs