Delete array manipulations and sorting