The swFeatureTreeFolder_EmptyAfter option is not supported. You can only insert the folder before the feature. It seems to be also impossible to reorder the folder feature if it is inserted before mates group. Whats is possible however is to insert any feature after the mates group (for example sketch) then insert the folder before this sketch so you will have the correct position of your folder. You can then remove the sketch.