I am attempting to transition from text/HTML to application/JSON info_format in my GetFeatureInfo requests. The issue I'm running into is that when I use a GetFeatureInfo request with a PostgreSQL view the properties are returned in alphabetical order as opposed to the ordering specified in the view. This is not the case when I use GetFeatureInfo on a table or when I use the text/HTML info_format on a PostgreSQL view.
Does anyone know a way around this?
geometry, attr_1, attr_2vs.
geometry, attr_2, attr_1.