'Drawing multiple layers from vector tile in OpenLayers

I'm creating vector tiles with Postgis (ST_AsMVT()) and rendering them with OpenLayers (ol/layer/VectorTile) and styling them with style file (ol-mapbox-style). I have multiple layers in one pbf file. How can I control the drawing order (z-order) of those layers included in one pbf file?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source