I'm using Wordpress and I have created a posts array using get_posts (a list of attachments IDs of type image).
This populates the array with the post IDs that I'm interested in. I would now like to add an associated item to each of the array entries so that I end up with something like this.
The first column is the postID and the second column is the associated string that I've added (from a lookup).
The reason for this is I would like to sort the array into ascending order on the second column which will then put my post IDs in the same order. When I display the images using the post ID, they will be displayed in the order defined by column 2.