sort young matrix