Formula Bar updates Undo popup

When sorted, gives correct row #'s for formula Bar and direct entry.
Fixed bug where metabolite edits from formula Bar not showing up when
sorted.