Javascript Sort Random Array Using Only One Loop Without Sort

Javascript Sort Random Array Using Only One Loop Without Sort