Preserve order when removing duplicates for `format=short` (#323)