fix sorted weights on numrical attr for rf