code: func (by pageBy) Sort(pages Pages) {
  	ps := &pageSorter{
  		pages: pages,
  		by:    by, // The Sort method's receiver is the function (closure) that defines the sort order.
  	}
  	sort.Stable(ps)
  }
docs: // Sort stable sorts the pages given the receiver's sort order.