going on in arrary and sort