Before I upgraded to Moodle 2.1 I had the same problem. I changed a couple of lines of code which I found necessary to fix it to include everyone. I've attached the patches. The first two shows more than 25 students in different parts of the module, and the third sets up sorting by name.
I've upgraded to Moodle 2.1 recently and now I'm finding that I cannot take attendance.