bug fix for JQuery DataTable sorting