I'm pretty sure the title sounds kind of weird but I hope this is a valid question :)

I have a class, let's call it Employee:

```
class Employee 
{
    int employeeid { get; set; }
    String employeename { get; set; }
    String comment { get; set; }
}

```

I will fill a List from a database. An employeeid can have X number of comments, thus leaving the ratio 1:X. And there can of course be Y number of employeeid as well.

I want to create a List out of all the employee-objects which has for example employeeid = 1. And another list out of employeeid = 2.

I can sort the original List by employeeid, loop through the list and create a new list each time I hit a new employeeid. However I feel that the performance could be better.

Is there a way to split the original List into X number of lists depending on X number of distinct employeeids?