table.sort
Example
Sorting table by an integer
Output: Table going from highest number to lowest (1: Peter, 2: Shay, 3: Jeff, 4: Janine)
Example
Sorting a player table by a NWInt
Output: Player table sorted by score going from highest to lowest
Example
Sort the table by string keys. We cannot sort non-numeric keys in ages, because they are contained in a hash part whose order is undefined.
Output: Janine  1
Jeff    8
Peter   17
Shay    11
			Garry's Mod 
		
			Rust 
		
			Steamworks 
		
			Wiki Help