Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
SortWho(sortType)

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


Parameters

Arguments

(string sortType)
sortType
String - 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.


Triggers Events

Template:Stub/Begin This article or section is a World of Warcraft API stub.   You can help expand it by clicking  edit this page  above.

  • Please see How to edit API pages for a list of boilerplates and page tags to use for different types of API related pages.
  • Please be aware of the new rules of API pages as, we no longer just slap "{{WoW API}}" at the bottom of pages.

Template:Stub/End The API doesn't actually show the who list frame. It triggers an event that causes the frame to show.   --Mikk (T) 18:41, 22 September 2006 (EDT)


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.


Details

  • 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.