The roles of $a and $b are explained in detail in the documentation with many examples.
In reply to Re: sort file with your own logic by hdb in thread sort file with your own logic by citi2015