@youyin123, Multiple sorting is only allowed by predicates. In your case, you have used val(diff) so multiple sorting is not allowed and orderasc:name is ignored. I am not totally sure about why multiple sorting is not allowed and what is the workaround.
@MichelDiz do you have some idea?