code: public List<T> toSortedList() {
      List<T> sortedItems = Lists.newArrayList();
      while (size() > 0) {
        sortedItems.add(removeMin());
      }
      Collections.reverse(sortedItems);
      return sortedItems;
    }
docs: Pops all of the items in this queue and places them
  into a list sorted in descending score order (i.e.,
  with the highest scoring item first). This queue
  will be empty after calling this method.
  
  @param queue
  @return