Just a couple really quick and easy questions.

What is the default sort order for Webform?

Why is the sort order different in the edit mode than in the view mode?

I know I can force things with the weight...but if I understood the default sort order I could minimize using the weight.

It seems to sort by alphanumeric, but if I don't change the default names of the fields they seem to sort to the top and they begin with "t" for textfield.

Thanks.

Comments

LoveBeingADad’s picture

Anyone know the default sort order for webform?

vako’s picture

Late reply, but I just fiddled with the code and changed the sort order as follows:
open the ..\sites\all\modules\webform\webform_report.inc file
search for 'sort' and you will get a line like: array('data' => t('#'), 'field' => 'sid', 'sort' => 'asc'),
note that this is sorting by ID, you can move the sort option to any one of the other lines beside that one, however it's very hard to sort it by a custom field that you have. Also changing anything might render the form inoperable, so make a backup first.

Let me know if you have found an easier way of doing this.