basic sort complete without flag