You should be able to arrange items on a folder by name using the “arrangement” property of the class “icon view options” of the object “window”.
tell application "Finder"
set arrangement of icon view options of window of alias "path:to:some:folder:" to arranged by name
end tell