implemented saving sort order after editing.