fix sorted content