sort doesn't work when load data by promise #258

This pull request references issue #258. It fixes a problem when use ajax to init the table(didn't use ajax/pipe)
the sort function doesn't work