Inside the body of the sort block, $a and $b refer to the items being compared. If you use $c and $d, sort isn't going to do what you want it to do.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: $a <=> $b
by roboticus
in thread $a <=> $b
by truthseeker66
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |