How to Get Posts Using Post IDs in The Order It was Given on WordPress?

2012-07-24T13:07:46+00:00

Example: We have an array containing post ids $post_ids