alpha-sort compatible numbering scheme