WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #30225, comment 1


Ignore:
Timestamp:
11/01/2014 05:44:38 AM (6 years ago)
Author:
westonruter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30225, comment 1

    initial v1  
    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.