What you probably want to do is build a "linked list" out of your records. If you give each record a link to the previous record then all you need to do is change 1 record when you want to insert a new one.
So if you have 3 records each one would be linked to the one infront of it and the first on would have no link:
1: no link
2: linked to 1
3: linked to 2
Now if you want to add a record to the end that's easy you just grab your largest record and then add the new one linking it to that one:
1: no link
2: linked to 1
3: linked to 2
4: linked to 3
No if you need to add a record inbetween 2 and 3 you need to know that this record comes before #3 (since you don't know what comes after any given record in this scheme), and then you find out what record 3 is linked to and when you add 5 you make it linked to 3's link and then link 3 to 5:
1: no link
2: linked to 1
3: linked to 5
4: linked to 3
5: linked to 2
Now you've inserted your record inbetween the 2. If you need to you can change this to be "prev" and "next" links then you'd need to change both record 2 and 3 in the above example but you'd be able to move forward and backwards a little easier. Although calling the record that is linked to your current record makes for an easy next link.