Fix sort on columns which uses function with column between back quotes.
Merge pull request #757 from Tithugues/fix-4030

Fix #4030: Fix sort on columns which uses function with column between back quotes.