sort text having delimiter with "|" (pipe)

i am having text file below

NARGU S S             12358      SALES REP                     |22|  Acccount/s
RAJU R B              64253     SALES REP                      |12|  Acccount/s
RUKMAN S              32588     SALES REP                      |10|  Acccount/s
NARGUND S S           12356     SALES REP                      |2|  Acccount/s

i want to sort it having delimiter "|"

i.e

NARGUND S S           12356     SALES REP                      |2|  Acccount/s
RUKMAN S              32588     SALES REP                      |10|  Acccount/s
RAJU R B              64253     SALES REP                      |12|  Acccount/s
NARGU S S             12358      SALES REP                     |22|  Acccount/s

pls help

sort -t\| +1n infile
1 Like

can i get it in reverse order

The same, but add an "r" as argument:

sort -t\| +1nr infile
1 Like