3 ms·
One solution when going with lexicographical ordering is to use a bigger step, so that you can reorder things without having to renumber all the files. Linux c
by chrismorgan 6y ago
One solution when going with lexicographical ordering is to use a bigger step, so that you can reorder things without having to renumber all the files.
Linux conf files often use this technique so that they can load in the right order while still making it easy for you to insert your own additions at any point: e.g. /etc/fonts/conf.d/{nn}-{slug}.conf, the numbers I have in there are 10, 10, 20, 30, 40, 45, 45, 49, 50, 51, 60, 60, 65, 65, 69, 80, 90.
You can also just add more digits after the number and disregard any neatness of scheme; 0011-{slug} and so forth will go after 001-{slug}.
I don’t say either of these are good solutions, but they’re possibilities.