Added sortEntryTable calls

added two sortEntryTable calls after the updating of an entry