func (p IntArray) Less(i, j int) bool { return p[i] < p[j]; }
func (p IntArray) Swap(i, j int) { p[i], p[j] = p[j], p[i]; }
+// Sort is a convenience method.
+func (p IntArray) Sort() { Sort(p); }
+
// FloatArray attaches the methods of SortInterface to []float, sorting in increasing order.
type FloatArray []float
func (p FloatArray) Less(i, j int) bool { return p[i] < p[j]; }
func (p FloatArray) Swap(i, j int) { p[i], p[j] = p[j], p[i]; }
+// Sort is a convenience method.
+ffunc (p FloatArray) Sort() { Sort(p); }
+
// StringArray attaches the methods of SortInterface to []string, sorting in increasing order.
type StringArray []string
func (p StringArray) Less(i, j int) bool { return p[i] < p[j]; }
func (p StringArray) Swap(i, j int) { p[i], p[j] = p[j], p[i]; }
+// Sort is a convenience method.
+ffunc (p StringArray) Sort() { Sort(p); }
+
// Convenience wrappers for common cases