Sort by

recency

|

69 Discussions

|

  • + 0 comments
    sort -r -n -k 2 -t $'\t' 
    
  • + 0 comments

    Simple One Line Code

    sort -r -n -k 2 -t $'\t'
    
  • + 0 comments
    #!/bin/bash
    
    sort -t$'\t' -k2 -nr
    
  • + 1 comment

    -r : For reverse order
    -n : numerical sort
    -k: column ordering
    -t : tab separted indicator

    sort -r -n -k 2 -t $'\t'
    
  • + 0 comments

    I managed to solve the problem through the process of trial and error, despite the problem description lacking instructions on how to handle tied results in the second column during sorting.

    sort -t $'\t' -k2rn -k1r