added sort array function into menu