Add nonrecursive sort