fixed sorting problem
Final commit of result set