<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_sorted_section(self, nts_section):
 """Sort GO IDs in each section, if requested by user."""

        #pylint: disable=unnecessary-lambda
        if self.section_sortby is True:
            return sorted(nts_section, key=lambda nt: self.sortgos.usrgo_sortby(nt))
        if self.section_sortby is False or self.section_sortby is None:
            return nts_section
        # print('SORT GO IDS IN A SECTION')
        return sorted(nts_section, key=lambda nt: self.section_sortby(nt))