Group List

Maybe you can use this solution: Splitting lists by value