Is there a way to sort fields listed in models?

  • 1
  • Question
  • Updated 5 years ago
We are trying to keep the fields we add to our models down to a minimum, and there are always a few stragglers added after an initial build, these can be hard for other users to find since they are no longer in alphabetical order and aren't searchable.

Photo of Thaddeus Ward

Thaddeus Ward

  • 736 Points 500 badge 2x thumb

Posted 5 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
There is currently not a way to reorder fields in the builder.  You can expose the XML (bottom right corner of the builder page) and move the code around to your hearts content.  I know that is a hack, but it works. 
Photo of John Nelson

John Nelson, Product Manager

  • 3,234 Points 3k badge 2x thumb
Also, if you click "Selected Fields" in the right pane, they're alphabetically sorted and searchable. We've been talking about removing the "old" way of showing fields for a while, but we haven't wanted to completely mess up anyone who's used to using it.

Photo of Thaddeus Ward

Thaddeus Ward

  • 736 Points 500 badge 2x thumb
The only catch is that I don't seem to be able to drag the fields from this pane into my page layout. Should I be able to? If so, the problem is solved...
Photo of John Nelson

John Nelson, Product Manager

  • 3,234 Points 3k badge 2x thumb
Yep, you can. Just need to use the gripper to the left of the checkbox.
Photo of ktyler

ktyler

  • 9,244 Points 5k badge 2x thumb
John,
He's right, this is a pain. If you want backwards compatability then put a little "sort" icon next to the "fields" label.
On this one I suspect that on one like having to scroll up and down... or delete all the fields in the model and readd them in alpha order.... and you wouldn't get many complaints

Ken Tyler