protected override void Execute(OleMenuCommand Button) => TextSelection.GetSelection(Package, out int[] poses, out bool newLine).Select(x => (Row)x).OrderBy(x => x.Cleared.Length).ThenBy(x => x.Cleared).Select(x => (string)x).ReplaceSelection(poses, newLine);
protected override void Execute(OleMenuCommand Button) => TextSelection.GetSelection(Package, out int[] poses, out NewlineType newlineType, out bool newLine)
public void AddSort(IUserSort Sort) { MenuCommandWrapper wrapper = Factory.Create(() => Sort.Sort(TextSelection.GetSelection(Package, Sort.EmptyLineAction, out int[] poses, out NewlineType newlineType, out bool was)).ReplaceSelection(Sort.EmptyLineAction, poses, newlineType, was), Sort.Name); wrapper.SetParameter("Guid", Sort.Guid); }