Translations:Extension:Scribunto/Lua reference manual/8419/en

If $1 is given, then it must be a function that receives two table elements, and returns true when the first is less than the second (so that $2 will be true after the sort).