Last() returns first point instead of last

Issue has been discussed here: https://community.influxdata.com/t/recent-edition-of-influxdb-2-0-2-last-function-not-work-as-expected/16942/5?u=pohl6532.

Seems last() function is broken since V2.0.2