Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Sorting in select field

Quote Reply
Sorting in select field
Adding a new record!
The values of a select field are sorted by alphabet

This is not good in my case, values should be
in the sortorder of my input at the field definition.

How to fix?

Michael

Quote Reply
Re: Sorting in select field In reply to
Is this the category field you are referring to?

Regards,

Eliot Lee
Quote Reply
Re: Sorting in select field In reply to
Not category ......

For example, a user has to select his language-knowledges
by a select field like this

--
do not speak
poor
good
very good
excellent

when I define it in this order it makes sense, but the select field on the form will be build in alphabetic order

--
do not speak
excellent
good
poor
very good

Thatīs not pretty

Michael


Quote Reply
Re: Sorting in select field In reply to
This is something Alex will have to address. The default is alphabetic, but I think this could be changed by changing the order the field is set up with. This would mean editing the source, unless Alex can add a new property to the select list "sort order" with "None" as one of the options.

This is a fine point that probably can be easily addressed.

PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: Sorting in select field In reply to
Hi,

Your right, it should be sorted by how it was created, not alphabetically. We will update the code, and you'll see this in 2.0.2.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Sorting in select field In reply to
Itīs necessary to define the sort order of each selected fields, because sometimes alphabetic would be right, and sometimes user input is right, depending of the topic.

Michael

Quote Reply
Re: Sorting in select field In reply to
Hi,

No, if you need it alphabetic, you should define your tables that way. It's not worth the overhead saving the data in a separate location.

Cheers,

Alex

--
Gossamer Threads Inc.