Send reordered queue with array from html