I uploaded a multi columns table (GIS data) to Geoserver,

shapefile with multiple columns and I created different styles for each column, and named them with number as initial and then column name like So I see everything in order.

style Names: 00_f1 01_f2 02_f3 03_f4 04-f5

but Geoserver does not preserve the order and the selected styles will appear not ordered in Mapstore or even Openlayer preview of Geoserver.

selected styles

am I doing something wrong in here? or this is the feature / problem of Geoserver?

consider this, I have 100 columns and if I want to select a specific style I need to see all of them to choose .

  • GeoServer will display the attributes in the order they are stored in the feature. - Styling will have no effect on the order - please edit your question to make it clearer what is not working for you (maybe a screenshot of the problem?)
    – Ian Turton
    Commented Jul 6, 2022 at 8:13
  • where are you looking for the styles? GeoServer doesn't care about the order and may or may not honour it - It sounds like you need to fix the order in your client code
    – Ian Turton
    Commented Jul 6, 2022 at 14:34

1 Answer 1


This seems to be a client side issue, you need to apply a sort function to the style names before you insert them into your client's GUI element.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.