sped up array sorting, making drop down menus open much quicker