SetCustomSortMode

Far Manager Macro System

SetCustomSortMode


Panel.SetCustomSortMode (Mode, whatpanel [, order])

Parameters:
  Mode:         sorting mode, an integer >=100 and <=0x7FFFFFFF
  whatpanel:    0=active panel, 1=passive panel
  order:        "auto"    - standard choice of sort direction (default)
                "current" - keep current sort direction in the panel
                "direct"  - set direct sort mode
                "reverse" - set reverse sort mode

Returns:
  Nothing

Description:
  If the specified sorting mode is loaded (see Panel.LoadCustomSortMode), that sorting mode
  will be set in the specified panel. Otherwise, no actions will be done.

Example:
  -- Set the given custom sort mode in the active panel.
  Macro {
    description="Sort files by their name lengths";
    area="Shell"; key="CtrlShiftF1";
    action=function() Panel.SetCustomSortMode(100,0) end;
  }