groupff
flatten + tests
flattenff + tests
sort unit tests