• + 0 comments
    sort -t $'|' -k2rn
    

    command sets the field separator to the pipe character |, and then sorts the file based on the values in the second column, in descending numeric order. The -k2 specifies the second column, the r tells sort to sort in reverse order, and the n specifies that a numeric sort should be used for values in that column.