Fixed the solution sorting. again.