Javascript Loop Through Json Response Arraylist Sort