Proper sorting. I messed up the last one.