Are you maybe thinking of pica? https://en.m.wikipedia.org/wiki/Pica_(disorder)
Calling it a "disorder" and "largely non-nutritive" seems a bit broad, when it could be satisfying a particular need. Even though eating feces might not be a good idea and more serious examples do seem useless and damaging.