Retain input order