Can also sort on username. Uniformize code of index page.