TMDM-7735 Put master record on top when sort records.