Weight sorting

Weight sorting