Reversible permutation of the characters of a string, which can be used for lossless data compression based on block sorting.