Adding form elements with same index causes only the last to be rendered

Just spent a good part of yesterday hunting for the root cause of Zend Form not rendering some of my form elements.

Without this patch, the sorting routine overwrites elements if they already exist with the same "order" value, causing them to not be rendered even though they are part of the form for all other purposes. I'm pretty sure this confusing behavior can't be the intention of the framework user, so throwing an exception seems appropriate. Unless someone wishes to create a non-ambiguous solution that automagically handles this?
Merge pull request #169 from kander/patch-1

Adding form elements with same index causes only the last to be rendered
[#169] Remove namespace qualifier

- minimum version is 5.2
- no namespace declared in this file anyways
Merge branch 'hotfix/169'

Close #169
fixed Zend_Ldap_Node_OfflineTest::testGetSetAndDeleteMethods unit test
removed Zend_Json_Exception from Zend_Config unit tests
fixes #152
Merge pull request #173 from jeremyquinton/152

fixes #152
Merge branch 'hotfix/173'

Close #173
Fixes #152
Merge pull request #170 from aporat/unit-tests

Fixed 3 unit tests (Zend_Ldap, Zend_Config)
#157 - preg_replace() with /e modifier under PHP 5.5 is deprecated
Merge branch 'master' of https://github.com/zendframework/zf1

# By Adar Porat (2) and Jeremy Quinton (1)
# Via Matthew Weier O'Phinney (2) and others
* 'master' of https://github.com/zendframework/zf1:
  fixes #152
  removed Zend_Json_Exception from Zend_Config unit tests
  fixed Zend_Ldap_Node_OfflineTest::testGetSetAndDeleteMethods unit test
Merge branch 'master' of https://github.com/kander/zf1

* 'master' of https://github.com/kander/zf1:
  Resolve #180