Modified the sort function signature to also pass the original table, so...

... not only keys are available when sorting, but also the values in the original table.

updated from https://github.com/pkulchenko/serpent/pull/6