Sort in an array

is the sort method the only function that can reposition elements in an array, i have an array with four elements, depending on the situation, i would like to grab one element and move it either to the top or bottom of the array