Error correcting permutation code
The first reference seems to be Rank permutation group codes based on Kendall's correlation statistic by Chadwick and Kurz; your notion of distance is known as Kendall's tau distance. A more modern reference is Codes in Permutations and Error Correction for
Rank Modulation by Alexander Barg and Arya Mazumdar