inserts a new record in the proper place in a list
orderedinsert(plistname)