Sorting Record List by formula result

I want to sort Record List by the result of formula that I have in my datatable. I tried either to have it as number and string, but it seems like record table is ignoring it and still sorting by date.