intermediate version (datatable sort doesn't work momentarily)