```python
def re_order(A):
    """
    Moves all zeros in the list A to the end, in-place.
    The relative order of the non-zero elements is maintained.
    """
    write_index = 0
    for read_index in range(len(A)):
        if A[read_index] != 0:
            # Swap the non-zero element with the element at the write_index
            A[write_index], A[read_index] = A[read_index], A[write_index]
            # Advance the position for the next non-zero element
            write_index += 1
```