to clarify or resolve (e.g. a problem), esp by thoughtful consideration
to separate (something) from a mass or group
Sort out the important papers and throw the rest away
to clear up or tidy (something)
It will take ages to sort out this mess
chiefly Brit, informal to punish or take vengeance on (somebody), esp by violent means