Sort By Date and Time

Hi rikxik/Perderabo,

I tried the below as you have requested. Don't really know what they means but do you get any ideas from here ? I tried the " /usr/xpg4/bin/sort " and it doesn;t work too.

$ uname -a
SunOS mytester 5.7 Generic_106541-40 sun4u sparc SUNW,Ultra-1

$ which sort
/bin/sort

$ ls -1 |/usr/xpg4/bin/sort -t'_' -k1 -k2
sort: option requires an argument -- k
sort [-bcdfiMmnru] [-o output] [-T directory] [-ykmem] [-t char]
[+pos1 [-pos2]] [-k field_start[type][,field_end[type]] [file...]

$ ls -1 |/usr/xpg4/bin/sort -t"_" -k1 -k2
sort: option requires an argument -- k
sort [-bcdfiMmnru] [-o output] [-T directory] [-ykmem] [-t char]
[+pos1 [-pos2]] [-k field_start[type][,field_end[type]] [file...]

Try leaving a space between the k and the argument:
-k 1 -k 2