add ranking value to sort media items