%%add your rule for shuffle
%%add your rule for order
mymerge(X,Y,Z):-shuffle(X,Y,Z),order(Z).