sort ps output in seconds

Now I van sort in hour-minute-second. I need in seconds

 ps -eo pid,etime,args --sort=start_time | grep bash

Sample Output

15064       03:23 -bash

I need in 03:23 in seconds

You need to convert 3:23 to seconds? The Linux ps won't do that -- you have to do it yourself.

 ps -eo pid,etime,args --sort=start_time | 
awk { split($2,t,"[:-]"); $2=t[4]*3600*24+t[3]*3600+t[2]*60+t[1]; print;}

The output isn't as pretty, but we can work on that.