I have created custom sort functionality using sort calculation but I am facing issue in Sorting.
So I am attaching workbook In that I have created 2 parameter SortBy and SortOrder
Also There is one calculations CalcSort.
Have a take a look on that and what are the mistake I have made.
As Its not sorting properly you can check in Attached example of workbook.
Let me know any further detail require.