How to sort an array ?

Hi, please give me the code for sorting an array() !!!

using UnityEngine;
using System.Collections;
public class Config: MonoBehaviour {
public string lanarray = new string[6];
void Start(){
lanarray = new string[6];
just i want to sort all the elements in lanarray()?

Just use Array.Sort. I don’t usually say things like this, but you could have found that out by taking 5 seconds to put “C# array sort” into Google.