Fixed reverse value sorting errors