To sort is to group elements in a specific order which is defined by the presence or absence of one or more traits in each element.