I have a single layer that is divided up into "sub-layers" (there is only 1 layer). The "sub-layers" are shown in the Layers Panel with different names and colors based on location. I would like to group these "sub-layers" together based on their name (the way I am grouping them doesn't really matters) what matters is how I can group a single layer into groups. I would like to group these Lines below by "AK" or "AL" (again the specifics are not important). I cannot select any of these options (AK - North Slope), for lack of a better word, drag and drop does not work.
Any suggestions would be great.
I am trying to do this using the GUI first and then through a Python script so any information you can provide will be really helpful
I am using QGIS 2.4, Postgresql 9.6, and Python 2.x