I want to know how category sorting is done. I want to sort my categories

I want to know how category sorting is done. I want to sort my categories.