Add possibility to custom sort function

This opens to the possibility of passing a custom user function to sort
the order of a specific column.
docs update with new sort parameter
call it sort instead
Merge pull request #1271 from SergioCrisostomo/HTMLTableSort-additions

custom sort function