code: func (l Listing) applySort() {
  	// Check '.Order' to know how to sort
  	if l.Order == "desc" {
  		switch l.Sort {
  		case sortByName:
  			sort.Sort(sort.Reverse(byName(l)))
  		case sortBySize:
  			sort.Sort(sort.Reverse(bySize(l)))
  		case sortByTime:
  			sort.Sort(sort.Reverse(byTime(l)))
  		default:
  			// If not one of the above, do nothing
  			return
  		}
  	} else { // If we had more Orderings we could add them here
  		switch l.Sort {
  		case sortByName:
  			sort.Sort(byName(l))
  		case sortBySize:
  			sort.Sort(bySize(l))
  		case sortByTime:
  			sort.Sort(byTime(l))
  		default:
  			// If not one of the above, do nothing
  			return
  		}
  	}
  }
docs: // Add sorting method to "Listing"
  // it will apply what's in ".Sort" and ".Order"