Solved easy problem: sorting