To begin with, I'm not even sure if tex has this functionality, but let me try to explain what I'm trying to do.
So I'm keeping a work log in tex format, that I try to update every now and then. So far, I've been making a new section for every day I add things. So my sections look like
\section*{February 05, 2013}
% tables, figures, text, etc..
\section*{February 06, 2013}
% other tables, figures, text..
Although it is nice to keep chronological order when I'd like to go back to see when I did something, this messes up the contextual order of things. So equivalently, I may have a version of my log that looks like
\section*{Instrumentation}
% tables, figures, text, etc..
\section*{Ordered Parts}
% other tables, figures, text..
And, as you already guessed, the chronological order and the contextual order don't match. So what I'm trying to do is set up a way to typeset in my choice of order. I'd like to be able to specify that I want contextual order, and I want the compiler to extract information that belongs to the same contextual section from different chronological sections, and typeset accordingly.
Like I said, I don't even know if this is possible with tex, but any help or suggestions on other platforms to do this would be appreciated.