change layout of sorting in overlay dialog