B, D, A, C, E
I need to put them in a specific order based on some of their attributes (for simplicity, let's say I need them in alphabetical order). Unfortunately, I need to do this with two passes because there are a couple attributes I need to look at.
First pass executes and I get:
C, D, A, B, E
That's ok. It's not perfect but it's fine. I can adjust pass two to make this end up magically in the right order. Pass two, go!
A, B, D, E, C
What...the...That's not what I wanted at all. Well ok, it starts off ok but what the hell happened? I've been looking into this problem and I've come up with one solution.
The world hates me. That must be it. It's decided that I am not destined to figure out the solution to this and therefore will always give me the wrong result no matter what I do. Even if the process is correct, the world will still hand me out of order items.
Unfortunately, I get paid for this and I have to fight the world. Boss, do you see how hard I work? I'm fighting the whole damn world here. See. I am useful.
Yours,