fixed bug on sorting table column