sort performance issue , solved