fixed array sorting bug