Follow the steps below:
1. Go to Finder menu -> Show view options
2. Change arrange by to KIND
3. Click USE AS DEFAULTS at the bottom of the window to apply settings to all folders (it is in leopard; in tiger it is a little different I guess)
That won't put folders first. It will put them after any other file whose "kind" begins with a-e.