I'm trying to use a 3 element array and keep it sorted. So when i get a new value that should be put at the start of the array, I shift values down in the array like this:
array = array; array = array; array = result;
However, I've realized this does not work because of the way arrays are addressed. Is there anyway to do this via unary operators?