Can someone please explain why this discrepancy? and how to solve this.
Thanks.
6 answers
The final output for the formula is a hyperlink, and therefore it appears to sort by the URL link. While there are many articles that detail a solution, none of them seem to work as expected. There is an idea noting this here (https://trailblazer.salesforce.com/ideaView?id=0873A0000003gXjQAI).
For now it looks like your best bet is to not use the hyperlink and just use the formula of (LastName & " " & FirstName), add the column to the list next to the standard Name column then direct your users to sort by new column but click on the Name hyperline to get to the record. Not ideal, but gets the user to the record.