WoW:API SortWho

From AddOn Studio
Revision as of 12:55, 22 September 2006 by WoWWiki>Plynx
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
SortWho - Documentation by Plynx

Sorts an existing /who list; displays the Who List frame if not visible.

SortWho(sortType)

Arguments

(string sortType)
sortType
The type of sort you wish to apply to the who list. This can be anything you could normally sort by clicking column headers in the Who frame:
  • "Name"
  • "Level" (note that the column header is labeled Lvl)
  • "Class"
  • "Zone"
  • "Guild"
  • "Race"
Any other value (but nil) for sortType is treated the same as "Name".

Returns

SortWho appears to always return nil.

Example

SortWho("Level");

Result

Displays the current who frame and applies a sort by level, reversing the sort if the frame was previously sorted by level.

Notes

  • Calling the same sort twice will reverse the sort.
  • You may sort by Guild, Race, or Zone even if it is not the currently selected second column on the who frame.
  • Calling SortWho will display the who frame if it is not currently visible and apply the sort.

Template:WoW API