The numbers at the end of gene names reflect arbitrary conventions chosen by the person(s) who named them. It is different for different organisms because different people work on different organisms, and different people work on those organisms in different ways. In yeast, for example, genes (open reading frames along the chromosome) were originally named based on what chromosome they were on, which arm of the chromosome, their chromosomal order away from the centromere, and what strand of the DNA. So, a name such as YFL039C is on the Left arm of the 6th chromosome (F is the 6th letter of the alphabet), and is the 39th reading frame on the Crick strand. However, this gene also goes by ACT1, and genes named this way are often chosen based on a mutant hunt, and reflect the order of characterization from a screen. Obviously human genes are not named like yeast genes, nor are flatworm genes. There are often good reasons for this (there may be no assembled chromosomal sequence for your organism, no named chromosomes, etc.).
There is no general convention that is broadly applied, so people derive their own. And since people working with a system usually (!) try to make sensible choices in terms of coming up with conventions, if you see some order (as is evident in your examples) it suggests some kind of ordering - but you simply have to discover or enquire of the creators, because there are no rules that apply across the board.