def sort_pagebreaks(breaks)       #:nodoc:
    breaks.uniq.sort!
    breaks.shift if breaks[0] == 0

    # 1000 vertical pagebreaks appears to be an internal Excel 5 limit.
    # It is slightly higher in Excel 97/200, approx. 1026
    breaks.size > 1000 ? breaks[0..999] : breaks
  end
def sort_pagebreaks(breaks)       #:nodoc:
    breaks.uniq.sort!
    breaks.shift if breaks[0] == 0

    # 1000 vertical pagebreaks appears to be an internal Excel 5 limit.
    # It is slightly higher in Excel 97/200, approx. 1026
    breaks.size > 1000 ? breaks[0..999] : breaks
  end
This is an internal method that is used to filter elements of the array of
 pagebreaks used in the store_hbreak() and store_vbreak() methods. It:
   1. Removes duplicate entries from the list.
   2. Sorts the list.
   3. Removes 0 from the list if present.