Does anyone have any optimized code for array sorting?