If(Checkbox_Overdue.Value=false,
SortByColumns(Filter(Requests,
If(Not(IsBlank(ComboBox_RequestType.Selected)),Request_Type in ComboBox_RequestType.SelectedItems.Value,true),
If(Not(IsBlank(ComboBox_Subtype_Filter_2.Selected)), Request_Subtype in ComboBox_Subtype_Filter_2.SelectedItems.Value,true),
If(Not(IsBlank(ComboBox_Priority.Selected)),Prioritization in ComboBox_Priority.SelectedItems.Value,true),
If(Not(IsBlank(ComboBox_Status.Selected)),Status in ComboBox_Status.SelectedItems.Value,true),
If(Not(IsBlank(ComboBox_Requestor.Selected)),Requestor_Name in ComboBox_Requestor.SelectedItems.Result,true),
If(Not(IsBlank(ComboBox_AssignedTo.Selected)),Assigned_To in ComboBox_AssignedTo.SelectedItems.Title,true),
If(Not(IsBlank(ComboBox_Complexity.Selected)),Complexity in ComboBox_Complexity.SelectedItems.ColumnStart,true),
If(Not(IsBlank(ComboBox_PIQuarter.Selected)),Prioritised_in_PI_quarter in ComboBox_PIQuarter.SelectedItems.ColumnStart,true),
If(Not(IsBlank(ComboBox_PIYear.Selected)),Prioritised_in_PI_year in ComboBox_PIYear.SelectedItems.ColumnStart,true),
If(Not(IsBlank('ComboBox_GIA/GC'.Selected)), GIA_Compliance_Issue in 'ComboBox_GIA/GC'.Selected.ColumnStart,true),
If(Not(IsBlank(txtIDFilter_ID.Text)), ID=Value(txtIDFilter_ID.Text),true),
If('Toggle2_Filter Comple_Rejected'.Value, Status <> "Rejected" && Status <> "Completed", true),
TextInput_FreeText.Text in Business_Value Or
TextInput_FreeText.Text in Request_Description Or
TextInput_FreeText.Text in Request_Name),
varSortcolumn,
varSortDirection),
SortByColumns(Filter(Requests,
If(Not(IsBlank(ComboBox_RequestType.Selected)),Request_Type in ComboBox_RequestType.SelectedItems.Value,true),
If(Not(IsBlank(ComboBox_Subtype_Filter_2.Selected)), Request_Subtype in ComboBox_Subtype_Filter_2.SelectedItems.Value,true),
If(Not(IsBlank(ComboBox_Priority.Selected)),Prioritization in ComboBox_Priority.SelectedItems.Value,true),
If(Not(IsBlank(ComboBox_Status.Selected)),Status in ComboBox_Status.SelectedItems.Value,true),
If(Not(IsBlank(ComboBox_Requestor.Selected)),Requestor_Name in ComboBox_Requestor.SelectedItems.Result,true),
If(Not(IsBlank(ComboBox_AssignedTo.Selected)),Assigned_To in ComboBox_AssignedTo.SelectedItems.Title,true),
If(Not(IsBlank(ComboBox_Complexity.Selected)),Complexity in ComboBox_Complexity.SelectedItems.ColumnStart,true),
If(Not(IsBlank(ComboBox_PIQuarter.Selected)),Prioritised_in_PI_quarter in ComboBox_PIQuarter.SelectedItems.ColumnStart,true),
If(Not(IsBlank(ComboBox_PIYear.Selected)),Prioritised_in_PI_year in ComboBox_PIYear.SelectedItems.ColumnStart,true),
If(Not(IsBlank('ComboBox_GIA/GC'.Selected)), GIA_Compliance_Issue in 'ComboBox_GIA/GC'.Selected.ColumnStart,true),
If('Toggle2_Filter Comple_Rejected'.Value, Status <> "Rejected" && Status <> "Completed", true),
Status <> "Completed",
Status <> "Rejected",
DateDiff(Deadline,Today(),TimeUnit.Days)>=0,
DateDiff(Deadline,Today(),TimeUnit.Days)<=Value(TextInput_OverdueDays.Text),
If(Not(IsBlank(txtIDFilter_ID.Text)), ID=Value(txtIDFilter_ID.Text),true),
TextInput_FreeText.Text in Business_Value Or
TextInput_FreeText.Text in Request_Description Or
TextInput_FreeText.Text in Request_Name),
varSortcolumn,
varSortDirection))
now it sorts like this


I would appreciate if someone could point me out on the mistake
thank you for your time