update law detail sort method