Functions Decreasing in Transposition and Their Applications in Ranking Problems