General doubts sorting

Can you tell me what is the use of the topological sorting. and in what particular cases can it be used