Function sort() arrange with respect to specific condition e.g. ascending, descending and others.

function sort() for ascending ordering elements

function rsort()