In which order do the motor restrictions occur in a patient with a frozen shoulder?