origo icon indicating copy to clipboard operation
origo copied to clipboard

order of objects in attribute type "searchList" seems not correct

Open leafisfalling opened this issue 1 year ago • 1 comments

Describe the bug Objects in the list of attribute type searchList do not follow the order which object comes first in the code in json-file. On the contrary, it seems that the shorter text the object's value has, the higher position the object will come up in the list. This behaviour happens in Origo release 2.7.

image

To Reproduce Steps to reproduce the behavior: Define a map layer with attribute type "searchList", and in the list array define some objects with different length of values.

Expected behavior Objects which is defined higher up in the list array of searschList in json-file should have higher position in the list.

Screenshots In order to work around the problem, I have to put some space to extend the length of value of different object as shown in the picture below. Strange enough the extra space that i put is not saved in the database table.

image image

leafisfalling avatar May 04 '23 10:05 leafisfalling