Fix name sorting again

Oops, 0-based, not 1-based!