How would you proper add a function to table.sort's argument #2?

First of all, I know how to use table.sort. I was wondering how you would add a function in argument two. Any ideas on how to use argument two (function)?

Nevermind. I figured the solution to this post. There is no need to reply.

What was the solution, so you can help future readers with the same problem.

After I posted this, I found this post as I searched:

In their code, I just knew how to use it.

1 Like