macOS Mojave stacks not grouping by type
I have same issue when I change System Preference-&gt;Spotlight setting. 

From Monitor App, I found Spotlight progress takes a lot of memory, so I disable some options from Spotlight setting's *Search Results*, and then Desktop Stacks with those types disappear.

So, re-enable the expected type in Spotlight setting, the type will show on Desktop.