Use Array sort function to achieve table sort , but i still have some problem on style change.