Command Reference — Sort category — Sort Longest to Shortest command

# Sort Longest to Shortest command

## Summary

Sorts text at the current column by length in descending order.

## Description

Sorts text at the current column by length in descending order. The Treat full-width characters as 2 characters when sorting by length check box in the Sort page of the Customize dialog box defines how full-width characters are counted.

## How to Run

- Default Menu: Sort > Sort Longest to Shortest

- All Commands: Sort > Sort Longest to Shortest

- Toolbar:

- Status Bar: None

- Default Keyboard Shortcut: None

## Plug-in Command ID

    EEID_SORT_LENGTH_D (3918)

## Macros

### [JavaScript]

    editor.ExecuteCommandByID(3918);

### [VBScript]

    editor.ExecuteCommandByID 3918