TMDM-7735 Put master record on top when sort records.
Merge branch 'maintenance/5.6'