in reply to How to sorting

You may have to provide some more information on how you want things sorted, but does @articleid = sort qw(b1 b2 b3 a100 a5 a8 a10 a11); do what you want?