Properties
defaultOptions :Intl.CollatorOptions
#
options :Intl.CollatorOptions
#
Get the effective sorting options.
Type:
- Source:
Get the effective sorting options.
Methods
resetOptions()
#
Reset sorting options to defaults.
- Source:
Reset sorting options to defaults.
setOptions([options])
#
Set sorting options used by line-sorting commands.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options |
Intl.CollatorOptions |
optional |
{} |
- Source:
Set sorting options used by line-sorting commands.
sortAscending(view) → {boolean}
#
Sort selected lines in ascending order.
Parameters:
| Name | Type | Description |
|---|---|---|
view |
EditorView |
Returns:
- Type
- boolean
- Source:
Sort selected lines in ascending order.
sortDescending(view) → {boolean}
#
Sort selected lines in descending order.
Parameters:
| Name | Type | Description |
|---|---|---|
view |
EditorView |
Returns:
- Type
- boolean
- Source:
Sort selected lines in descending order.