Sort duplicate methods at the end of the array.

This ensures we can still do faster lookups and ignore those methods.

Test: test.py
Flag: EXEMPT bugfix
Change-Id: Id97d985d6174732fa20168e5a2d1bd2f99c63601
4 files changed