Use a Tuple List instead of a Map for storing documents in order to maintain order