Grouping folders/shortcut folders together

So the script uses the file type groups settings that are in the settings to make the groups, and I have made groups for videos, images, etc.

Here is the script you actually posted it coincidentally (file type group sort url)

The only problem with the grouping I am having is with respect to getting folders to sort into a different group than their default/add shortcuts to the folders file type group.