Changes to SortPlotsPlugin and ~Window