I noticed that when an original manga with multiple chapters uses the main title for the series designation, it gets sorted into doujin. it apears that the deciding factor for doujin vs. manga is if the series designation is if it's marked "original work" it's manga. anything eles gets sorted as doujin.
an alternate method of sorting could be a toggle at the point of upload. that way the uploader can determine where it ends up.