fix Issue 5749 - argument evaluation order of chained function from right
Merge pull request #2881 from 9rnsr/fix5749

Issue 5749 - argument evaluation order of chained function from right