fix log head/tail
fix table column stored sort