I'm not trying to sort the objects by their own IDs. I'm trying to sort them so that they are in the same order as the list of ```ids``` that I used to retrieve them. E.g. ```ids = [5, 3, 4]``` then I want to sort objects to be: ``` [<ImageWrapper id:5>, <ImageWrapper id:3>, <ImageWrapper id:4>] ```
I thought there might be a 'one-liner' to do it, but I couldn't work it out.