add page weight and sort