0.0.0.3 upated sorting algorithm