in reply to Why are my functions second-class citizens?
Instead of fiddling with this magical syntax, I'd recommend writing a function my_sort with a clear interface to do what you want.
Cheers Rolf