Murphy’s Law says that after you carefully number all the items in a long list, you’ll notice that you need to insert a new item in the middle. This post describes a function for inserting and renumbering.
Source: LXer – Renumber a list after inserting a line