1 | | [attachment:30225.diff] adds stable sorting for panels, sections, controls in JS and improves in PHP. Panel, Section, and Control classes get a new static protected variable `$instance_count`, and when new instances are created this is incremented and the value is stored in an instance's `$insance_number`. This value is then used to sort the objects when their priorities are equal, thus resulting in a stable sort. |
| 1 | [attachment:30225.diff] adds stable sorting for panels, sections, controls in JS and improves in PHP. Panel, Section, and Control classes get a new static protected variable `$instance_count`, and when new instances are created this is incremented and the value is stored in an instance's `$instance_number`. This value is then used to sort the objects when their priorities are equal, thus resulting in a stable sort. |