Added function to resequence entries after an entry is deleted.