fix date format
return dash if value is null
allow configure default sorting direction