<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:14px"><div id="yiv8894115934"><div id="yui_3_16_0_ym19_1_1485048641262_3009"><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:14px;" id="yui_3_16_0_ym19_1_1485048641262_3008"><div id="yiv8894115934yui_3_16_0_ym19_1_1485048368815_8061">Hi list,</div><div id="yiv8894115934yui_3_16_0_ym19_1_1485048368815_8061" dir="ltr">   according to the documentation, the first layer in the mapfile is drawn first, and the second is drawn on top of that and so on... I was wondering if the same principle applies to the CLASS object as well. For example: I have a "Roads" layer stored in PostGIS with a "Category" column representing the different types of roads. So a category 3 is very small roads, category 2 is city roads, 1 is major roads and 0 is highways and on the same layers I create four CLASS objects with different styles for each Road category. But regardless the order of the classes (either I draw the small roads first or the highways) the same effect insists: the small roads are drawn over the highways.    So what is the solution here? Create different layers of the same dataset representing the various values of the "Category" column ??</div><div id="yiv8894115934yui_3_16_0_ym19_1_1485048368815_8061" dir="ltr">  </div><div id="yiv8894115934yui_3_16_0_ym19_1_1485048368815_8061" dir="ltr"><br></div><div id="yiv8894115934yui_3_16_0_ym19_1_1485048368815_8061" dir="ltr">Regards,</div><div id="yiv8894115934yui_3_16_0_ym19_1_1485048368815_8061" dir="ltr">-Stefanos</div></div></div></div></div></body></html>