[Hotfix] - SpatiaLite does not support the `ST_YMax` function
The query to identify and sort all tiles to be processed in Finalizer uses the spatial ST_YMax
function. However, this function is only defined in PostGIS. The query needs to be changed to run on both systems.