emit same lexer code for same lexer source, by sorting edges

problem was, that re-compiling same lexer source would often result in different code, with just the case 
statements permuted randomly... so, better to sort them first so that they're always output in the same order, resulting in unchanged code.