I'm not even sure how to search if this is an existing questions. Let me just give an example:
Call Instance Date Created Resource Resource Status
------------------------------------------------------------------
6557 2013-07-12 11:34:19 cwood Accepted
6556 2013-07-12 11:34:18 cwood Accepted
2013-07-12 11:29:25 cwood Ready
6555 2013-07-12 09:24:41 cwood Accepted
How do I get the top two Accepted entries off the top without getting the last Accepted entry (as it came before a Ready entry)?
All the fields except for Date Created are user-defined classes (Call, User [no, not Resource], and ResourceStatus).
Please let me know if further code would be useful.