added approximation sorting