changed how the View-->Sort By submenu displays sort order

and reorganized LinkingEditor, fixing small 64-bit compatibility along
the way.