Rename arrays and sorting to array manipulations and sorting