A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Dear Paul,
Thanks for posting back.
As per the screenshot shared, it seems that the output of your formular contains number and text, given this, Single like of text may be more suitable for your calculated column.
We've done a quick test by creating a single like of column directly with the output value shared in your screenshot and it can be sorted as expected as shown below:
Considering that value settings and samples for the column used in the Syntax is not shared, we cannot test the Formula on our side, we'd recommend you use the syntax in Formular directly without style and Format this column with Conditional formatting under Column settings to check the outcome.
Below are the screenshots of our test your reference:
And the formatting will show up in Column Formatting section in the calculated column settings page.
Best Regards,
Rhoda